note 81455 added to ref.array
| From: | (a) | Date: | Thu, 28 Feb 2008 19:26:18 +0000 |
| Subject: | note 81455 added to ref.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-136570@lists.php.net to get a copy of this message | ||
Here is how you refresh the expiration time for multiple cookies:
// get the cookie names
$keys=array_keys($_COOKIE);
// loop through all the cookies and update the exp. time
for ($i=0; $i<count($_COOKIE);$i++)
setcookie( $keys[$i], $_COOKIE[$keys[$i]], time()+3600);
you can use this in authentication validate file to keep the session up.
----
Server IP: 209.41.74.194
Probable Submitter: 63.249.96.44
----
Manual Page -- http://www.php.net/manual/en/ref.array.php
Edit -- https://master.php.net/note/edit/81455
Del: integrated -- https://master.php.net/note/delete/81455/integrated
Del: useless -- https://master.php.net/note/delete/81455/useless
Del: bad code -- https://master.php.net/note/delete/81455/bad+code
Del: spam -- https://master.php.net/note/delete/81455/spam
Del: non-english -- https://master.php.net/note/delete/81455/non-english
Del: in docs -- https://master.php.net/note/delete/81455/in+docs
Del: other reasons-- https://master.php.net/note/delete/81455
Reject -- https://master.php.net/note/reject/81455
Search -- https://master.php.net/manage/user-notes.php