Re: PHP authenticating and session management
| From: | Richard Lynch | Date: | Mon, 25 Jun 2001 07:19:23 +0000 |
| Subject: | Re: PHP authenticating and session management | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55106@lists.php.net to get a copy of this message | ||
> 1.)
> I see from www.php.net , people said they will generate a Session ID by
> themselves
> srand((double)microtime()*1000000);
> $unique_str = md5(rand(0,9999999));
> why not to generate by ourself ?
> PHP will create itself .
Once upon a time, a long time ago, there was no built-in PHP session
support.
Thus, one had to generate session IDs for oneself.
When I was a newbie, we *walked* to school. In the snow. Uphill. Both
ways. :-)
--
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