You are here: Re: design question: sessions vs arguments « PHP Programming Language « IT news, forums, messages
Re: design question: sessions vs arguments

Posted by David Haynes on 03/01/06 20:52

julian_m wrote:
> David Haynes wrote:
>> While you can detect edits to your
>> argument data, can you detect replays?
>
> Well, actually, I could. Just adding inside the argument verifier (md5)
> the date it was created, and comparing it agaist the server date.
> Nothing brillant, just an idea...
>
> saludos - julian
>
Hmmm...
I don't see how that would work.
You'd send out a page to a browser with an encoded timestamp.
It would send back some $_GET data presumably with the timestamp returned.
Somehow you would do delta on the timestamp to determine whether this
was a replay???

The usual way to do this is to hand a sequential number to the page
which, in turn, hands it back. The sequential number is then marked as
'processed' and all subsequent returns of the number are invalidated.

-david-

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация