Jordi Canals wrote:

I tried that on my servers: Tested on the development server and the production server. But It does not work for me.

Must say that I have to change this value by the .htaccess file, as I do not have access to the PHP.INI

The manual says that session.gc_maxlifetime has a default value of "1440" (24 minutes) and can be set on PHP_INI_ALL.

Well, I set session.gc_maxlifetime to 7200 (2 hours), because I need to edit some complex documents on the web.

After 20/25 minutes of inactivity, my session expires. It does not follow the configured 2 hours for garbage collection.

I know I'm missing something, but cannot find out what.

Are you sure your .htaccess setting is working? Look at the output of phpinfo() on a page under the .htaccess file and see if your setting is shown in the "local" column.


--

John Holmes

php|architect - The magazine for PHP professionals - http://www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to