Forum Moderators: coopster

Message Too Old, No Replies

Quick SESSION Q

         

ahmedtheking

10:41 am on Feb 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Say if PHP's session length was 5 mins and it took 15 mins to upload a file via PHP, would the session timeout?

mcibor

11:23 am on Feb 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes it would.

Session is deleted on the server and not on a browser. So in this example you would have to lengthen the session valid time.

Regards
Michal

omoutop

12:57 pm on Feb 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I think the default life span of a session is around 20-25 minutes of inactivity (although i have seen sessions timeout in 10 or 15 minutes).

In case you wish to expand the session duration, you may look at these:
session_cache_limiter();
session_cache_expire();
session_save_path();
ini_set('session.gc_maxlifetime',18000); // Maximum life of session (in seconds) about 5 hours :)