Re: sessionid
| From: | Justin Buist | Date: | Wed, 12 Sep 2001 14:55:20 +0000 |
| Subject: | Re: sessionid | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-12369@lists.php.net to get a copy of this message | ||
Anytime you use rand() there's a chance you'll get the same results.
Question is though, why are you making your own session id and not using
the one built into the PHP engine itself?
Justin Buist
Trident Technology, Inc.
4700 60th St. SW, Suite 102
Grand Rapids, MI 49512
Ph. 616.554.2700
Fx. 616.554.3331
Mo. 616.291.2612
On Tue, 11 Sep 2001, J-E-N wrote:
> hello!
>
> i have a script below, my question is, will there be a chance that i will get thesame
> $sessionid.
>
>
> if (!$sessionid) {
> $sessionid = md5(uniqid(rand()));
> SetCookie("sessionid","$sessionid",time()+1314000);
> }
>
>