RE: [PHP] Cookie References?
| From: | PHPBeginner.com | Date: | Sun, 25 Feb 2001 10:27:07 +0000 |
| Subject: | RE: [PHP] Cookie References? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41571@lists.php.net to get a copy of this message | ||
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)
maxim@phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: Jeff Oien [mailto:jeff@webdesigns1.com]
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: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net