i have a php script that is using
$_SESSION["username"] = $username;
for declare the session, and work fine, but if you close the navigator the session is removed, and i cant see why, my php.ini is this php.ini
i have a php script that is using
$_SESSION["username"] = $username;
for declare the session, and work fine, but if you close the navigator the session is removed, and i cant see why, my php.ini is this php.ini
This is because sessions are not permanent. A session is tied to the browser you have open. Once you close it, the session is gone.
If you want to keep some information permanently. You will want to use a database and store the information there.
Session is automatically destroyed after you close browser, for permanent storage use a database(mysql)