Re: [PHP-DB] sessionid

2001-09-12 Thread Justin Buist

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 (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] sessionid

2001-09-11 Thread J-E-N

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