Re: session duration
| From: | Richard Lynch | Date: | Tue, 02 Jul 2002 08:56:56 +0000 |
| Subject: | Re: session duration | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104878@lists.php.net to get a copy of this message | ||
>Is there a way to programatically (inside a session) change session duration
>for the current session only? (using cookie-based sessions) ?
Wild Guess:
What if you use the PHP functions to alter the php.ini value for session
time out in that script before you call session_start()?...
Totally Stupid, Ugly, Ikcy, Hack Answer:
PHP is just sending Cookies with the session ID and a time-frame for their
duration... So you send the same Cookie with a different time duration...
It's a bit tricky cuz different browsers will response differently to
getting the same cookie twice, and they are order-dependent, so you might
need to send your cookie, call session_start() and send your cookie
*again*...
Still not gonna work on every browser, but may be within acceptable
market-penetration levels...
This is just *SOOO* wrong to do, but it may let you limp by until you come
up with a better answer...
--
Like Music? http://l-i-e.com/artists.htm