[thelist] PHP $_SESSION Expiring in IE
Tony Crockford
tonyc at boldfish.co.uk
Sat Jan 3 06:02:41 CST 2004
On Sat, 3 Jan 2004 11:39:23 -0000, Tarrant Costelloe <taz at madfolk.com>
wrote:
> I cannot for the life of me figure out why a server side $_SESSION would
> expire on IE but not for MOZ or Opera but it is, and I need to figure
> out why and how can I fix this.
>
> REF. All login information is saved as such:
>
> session_save_path("$path/sessions");
> session_start();
> $_SESSION['session_memberID']=$session_memberID;
> $_SESSION['session_username']=$session_username;
> $_SESSION['session_groupID']=$membergroup;
Strangely I've been suffering similar problems but not limited to one
particular browser.
I think there is an undocumented problem with latest releases of PHP,
although my problems are limited to remote *nix hosting.
I have surmised the following possible causes:
too frequent garbage collection and a problem with PHP wrongly collecting
live sessions as garbage[1]
to short a session lifetime set in a different users script on my shared
hosting.[2]
what version of PHP are you running?
Shared or dedicated server?
My only option is to move from PHP's file based sessions to a database
stored session[3]
Hope this helps in some way?
Tony
[1]picked up in google searches, no longer have a reference.
[2]http://uk2.php.net/session (see comments by tim at digicol dot de)
[3]http://www.cheetah-soft.com/csh/
--
listening to: "if you don't know me by now" by David Brent
http://www.xebit.net/
More information about the thelist
mailing list