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);
> }

PHP Database Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to