I have created one simple website for my client. Using Register and Login form with the session.
I want to maintain session after closing the browser, shut down the computer and reopen website after the 1 day. (No need to re-login).
I have already used below code for that but still not getting success.
setcookie('PHPSESSID',session_id(),60*60*24);
session.gc_maxlifetime = 1440
php_value session.gc_maxlifetime 7200
session.gc_maxlifetime=315360000
session.use_cookies=1
session.cookie_lifetime=315360000
Please guide me if any wrong from my side.