Extending session timeout in PHP via the .htaccess

You can’t do that from the htaccess file but You can change this line in your php.ini file.

session.gc_maxlifetime = 1440

Update: it seems to be possible, so i stand corrected

php_value session.gc_maxlifetime 3600

I haven’t tried this out though.

Leave a Comment