hello there, i got a problem here with $_SESSION when i close the browser, the session destroys.. anyway of not destroying the session even if i restart the computer or atleast when i close the browser?? Thanks in advance!
Sessions are meant to be destroyed when you close your browser that is why it is called a session. Like the above poster said, you can store it in a database.
You dont like cookies? Creating a session generates a cookie on the users pc by default If you want to keep session affinity after the browser is closed the only way it to set a long term cookie and store the data in the database, on disk (other than the standard session directory) or memory
session_set_cookie_params(3600); ini_set('session.gc_maxlifetime', 3600); PHP: Call this BEFORE session_start();