php expire session for 1 month

38

// Current Session Timeout Value
$currentTimeout= ini_get('session.gc_maxlifetime');

// Change session timeout value for a particular page load  - 1 month = ~2678400 seconds
ini_set('session.gc_maxlifetime', 2678400);

Comments

Submit
0 Comments