PHP increase the session timeout

If you wish to increase the session timeout, you may include the following command line in to the first line after the php tags.

ini_set("session.gc_maxlifetime","14400");

Replace the 14400 with the session period (in seconds) that you desired.

Add Feedback