How do I create persistent sessions in PHP?
See the php.ini value session.cookie_lifetime. The default value of 0 means to end the session when the browser closes. You can override this value either directly in php.ini or set it in your application prior to starting the session using ini_set. Setting it to something greater than 0 will cause the session to live for … Read more