Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #expire #session #month
ADD COMMENT
Topic
Name
4+7 =