|
Posted by Andy Hassall on 10/13/76 11:34
On Tue, 13 Dec 2005 00:50:21 +0100, Peter van Schie <vanschie.peter@gmail.com>
wrote:
>jj wrote:
>
>> I have a very simple login script that checks user ID and password in which
>> I set the session variables for those inputs. People are complaining that
>> the app times out too early. I know that I can extend the life of the
>> session using the php.ini varialbles but im wondering if there are other
>> vaiable solutions out there for this problem.
>
>Set session.gc_maxlifetime using ini_set. For instance:
>
>ini_set('session.gc_maxlifetime', 3600);
>
>to set it to an hour.
But you'll also have to change the session.save_path, else other requests that
happen to run the session garbage collector will run based on the original,
shorter time.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|