note 18683 added to function.setcookie
| From: | hyper at tenbit dot pl | Date: | Thu, 31 Jan 2002 10:52:44 +0000 |
| Subject: | note 18683 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26088@lists.php.net to get a copy of this message | ||
I would like to confirm the server and client time difference problem. My client was in a different
time zone, and the cookie was never being set (as it had a past expire date).
One way to eliminate this problem is to use sessions and set user variables on the server (stored in
a database table with a timestamp as an expire date). Note that it uses much server power, so
it's probably not a good sollution.
--
http://www.php.net/manual/en/function.setcookie.php
http://master.php.net/manage/user-notes.php?action=edit+18683
http://master.php.net/manage/user-notes.php?action=delete+18683
http://master.php.net/manage/user-notes.php?action=reject+18683