Forum Moderators: coopster
cookies are indeed needed for this, check the seesion section in the php docs [php.net], there is a detailed description what they do in session and how sessions work in general.
- hakre
session.cookie_lifetime = "some number"
you can set this value on the fly in your script as shown below.
where some number is equal to the time as in integre of how long you want the session to stay alive for, the default value is 0 (kill when browser is closed)
<?PHP
$session_expire="90000";
ini_set("session.cookie_lifetime",$session_expire);
session_start();
...
?>