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