RE: Sessions that last for ever
| From: | SpamSucks86 | Date: | Sat, 16 Feb 2002 14:38:48 +0000 |
| Subject: | RE: Sessions that last for ever | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-85035@lists.php.net to get a copy of this message | ||
I think changing a setting in php.ini will do it, I'm just not sure
which one. session.cache_expire seems like it might do something, or
maybe session.gc_maxlifetime. Look them up in the manual
-----Original Message-----
From: Nigel Gilbert [mailto:n.gilbert@soc.surrey.ac.uk]
Sent: Saturday, February 16, 2002 7:44 AM
To: php-general@lists.php.net
Subject: Sessions that last for ever
By default, a session (created with session_register) seems to last just
as long as the user has their browser open. If a user quits the
browser, the session is automatically destroyed.
I want a session to last indefinitely (or until my program destroys
it). There are some hints about how this could be done with cookies in
the documentation, but not a clear recipe. What sequence of PHP
statements should I use to achieve this?
Thanks for any help,
Nigel