Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php ini_set

// Now server will keep session data for 2 hour

ini_set('session.gc_maxlifetime', 7200);

// All clients will remember their session id for EXACTLY 2 hour

session_set_cookie_params(7200); 
Source by phperrorcode.com #
 
PREVIOUS NEXT
Tagged: #php
ADD COMMENT
Topic
Name
9+7 =