Forum Moderators: coopster
session.auto_start (Off)
session.bug_compat_42 (On)
session.bug_compat_warn (On)
session.cache_expire (180)
session.cache_limiter (nocache)
session.cookie_domain (no value)
session.cookie_httponly (Off)
session.cookie_lifetime (0)
session.cookie_path (/)
session.cookie_secure (Off)
session.entropy_file (no value)
session.entropy_length (0)
session.gc_divisor (100)
session.gc_maxlifetime (1440)
session.gc_probability (1)
session.hash_bits_per_character (4)
session.hash_function (0)
session.name (PHPSESSID)
session.referer_check (no value)
session.save_handler (files)
session.save_path (/Applications/MAMP/tmp/php)
session.serialize_handler (php)
session.use_cookies (On)
session.use_only_cookies (Off)
session.use_trans_sid (0)
If anyone has any insight into why the sessions remain even when the broswer window is closed I would really appreciate it. Thanks in advance for your help!
The other option is to change an item in the session cookie first so that even if the browser refuses to expire it your website won't allow the session to continue.
For example the logout php script in my current code resets the cookie too:
setcookie('cookienamehere', '', 1, '/', '.domainnamehere.#*$!');
$_SESSION['loggedin'] = false;
$_SESSION['userid'] = 0;
$_SESSION['username'] = '';
$_SESSION['firstname'] = '';
session_destroy();
Every page on my site that requires the user to be logged in checks the session cookie for both the loggedin flag and also to make sure the userid is set to a valid number other than 0.
I've tested this on Safari (mac and iphone), opera, internet explorer, firefox & camino, all with no problems.
I hope this helps a little.
Seri