You are here: Re: extending life of a session without altering PHP.INI? « All PHP « IT news, forums, messages
Re: extending life of a session without altering PHP.INI?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация