php expire session for 1 month

Solutions on MaxInterview for php expire session for 1 month by the best coders in the world

showing results for - "php expire session for 1 month"
Amira
03 Apr 2018
1// Current Session Timeout Value
2$currentTimeout= ini_get('session.gc_maxlifetime');
3
4// Change session timeout value for a particular page load  - 1 month = ~2678400 seconds
5ini_set('session.gc_maxlifetime', 2678400);
6
similar questions
queries leading to this page
php expire session for 1 month