Re: chicken and egg problem with SID
| From: | Richard Lynch | Date: | Wed, 22 Aug 2001 00:41:29 +0000 |
| Subject: | Re: chicken and egg problem with SID | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-63825@lists.php.net to get a copy of this message | ||
> I can generate some random value to be used for the session_id, but I
> can't think of a good way to store it for use on the first page.
Why does it matter if they hit refresh and get a new session ID before
you've collected any information about that ID?...
About all you *COULD* do is have a "fake" first page that does:
<?php
$session_id = md5(rand());
header("Location: page2.php?session_id=$session_id");
?>
They can now reload the "second" (first they'll see) page as much as they
want.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm