From: "Pushpinder Singh" <[EMAIL PROTECTED]>

> I am using php and Mysql in my application. The problem is that the
> system automatically logs the user out of the system after 24 minutes.
> I would like to extend the session lifetime to about 2-3 hrs. I know
> there is a way to do it using a .htaccess file kept in the same folder
> as the application. Does anyone know how this is done ??

Adjust the "session.gc_maxlifetime" setting. It's 1440 seconds by
default.This controls the amount of time that unaccessed session files are
seen as "garbage" and deleted. If you raise the limit, the files (and hence
the sessions) will last longer.

---John Holmes...

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

Reply via email to