Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
11-18-2011, 02:35 PM #1
- Join Date
- Jan 2010
- Cardiff, UK
- Thanked 0 Times in 0 Posts
session timeout with php_value session.gc_maxlifetime
After my users log in, the
$_SESSION["logged_in"]expires after inactivity of the default 24 mins (1440 secs) and logs them out.
I want to extend this to 2 hours (7200 secs), but adding the below into my .htaccess is not doing it.
php_value session.gc_maxlifetime 7200
I want to be able to do it in the .htaccess as I do not want to change it server wide in my php.ini
Thanks in advance.
11-18-2011, 05:21 PM #2
- Join Date
- Feb 2011
- Your Monitor
- Thanked 527 Times in 514 Posts
- Blog Entries
I once heard that you can have individual php.ini files in seperate directories. You might want to consider that option.
See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/
Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!