note 22637 added to function.setcookie

From: Date: Tue, 25 Jun 2002 19:07:28 +0000
Subject: note 22637 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-32191@lists.php.net to get a copy of this message
It seems that there should be an easy way to update cookies. The setcookie works to set a cookie the first time, but second time you run a setcookie when you want to update the entry, it kills the original cookie. I had in mind to use a cookie to store a session number and give it a lifetime of 15mins, store important info in the SQL. Each time the user was doing something, the life time was supposed to be updated with. I don't have any clue why the cookie dies. -- http://www.php.net/manual/en/function.setcookie.php http://master.php.net/manage/user-notes.php?action=edit+22637 http://master.php.net/manage/user-notes.php?action=delete+22637 http://master.php.net/manage/user-notes.php?action=reject+22637

« previous php.notes (#32191) next »