tags:

views:

43

answers:

1

Hello you all,

Just want to know if I want to increase session time out, do I need to include ini_set("session.gc_maxlifetime", 14400); on every page I call session_start()?

Thanks,

L.

A: 

you can do this in .htacces

php_value session.gc_maxlifetime 14400
Andrei Serdeliuc
Correct, but if you did not have access to .htaccess then you would have to include it on every page before the call of session_start().
mediaslave