How to keep a PHP session active even if the browser is closed?
There’s two relevant settings that control session’s lifetime. The first is session.cookie-lifetime. This is the lifetime of the cookie, which by default is 0, which means the cookie is destroyed when the browser is closed. You can set a longer lifetime by increasing this variable. It is relative to the server time, so you need … Read more