Yes it can :

here's what I once was doing to assign a user with a cookie containing a
Session ID:


$uniqid = md5 (uniqid (rand()));

if(!isset($sid)) {
        $time = time();
        setcookie ("sid", $uniqid, $time*3);
}

time()+time() makes it really, really LONG ...  (62 years?), of course it
has not expired from anyone yet :-))



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-----Original Message-----
From: Jeff Oien [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 25, 2001 7:42 AM
To: PHP
Subject: [PHP] Cookie References?


Could you give me some URLs for tutorials related
to cookies and good reference material?

One question I have is can a cookie never expire?
Jeff Oien

--
PHP General 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 General 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]

Reply via email to