[thelist] PHP $_SESSION Expiring in IE

Tarrant Costelloe taz at madfolk.com
Sat Jan 3 06:16:30 CST 2004


> "what version of PHP are you running?"

http://www.planet-tolkien.com/test.php

> "Shared or dedicated server?"

Shared however we are using our own session directory compared to the
default /tmp in an attempt to escape the possible garbage collection
issue, this being: session_save_path("$path/sessions");

In Fellowship,
Tarrant 

-----Original Message-----
From: Tony Crockford [mailto:tonyc at boldfish.co.uk] 
Sent: 03 January 2004 12:03
To: taz at madfolk.com; thelist at lists.evolt.org
Subject: Re: [thelist] PHP $_SESSION Expiring in IE


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