Is there a way to increase the time it takes for a session in PHP to timeout, using .htaccess? My host won't change it and said to do it using the .htaccess.
Thanx,
Lenny
| SitePoint Sponsor |
Is there a way to increase the time it takes for a session in PHP to timeout, using .htaccess? My host won't change it and said to do it using the .htaccess.
Thanx,
Lenny





make an .htaccess file with the following line in it and place it in your web root and change the 1440 to whatever 1440 is number of seconds till session ends
php_value session.gc_maxlifetime = 1440
Please don't PM me with questions.
Use the forums, that is what they are here for.
i get an 'Internal Server Error' doing that, should I put anything else in the .htaccess, or change permissions or something else?





My mistake sorry shold be
php_value session.gc_maxlifetime 1440
I am pretty sure you don't need quotes around the value but if that doesn't work then
php_value session.gc_maxlifetime "1440"
Please don't PM me with questions.
Use the forums, that is what they are here for.
Bookmarks