Answers for "php expire session for 1 month"

PHP
0

php expire session for 1 month

// 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);
Posted by: Guest on September-18-2021

Browse Popular Code Answers by Language