The default time for a php session is 1440 seconds.

You can change it by doing the following:

ini_set("session.gc_maxlifetime",1440);

You can obviously adjust the second parameter (1440) to anything you like to change the timeout limit.