Re: Sessions are acting strangely

From: Date: Mon, 28 Oct 2002 16:14:09 +0000
Subject: Re: Sessions are acting strangely
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121738@lists.php.net to get a copy of this message
> Hi there, > Im looking for ANY help regarding his problem - I find this interesting to > say the least. > > I recently switched to a new hosting company - they are running php 4.1.2 - > register globals is ON. > the sessions automatically expire without closing the window. if you load > index.php and wait past 30 seconds - the session variables are empty - > Sometimes - although not reliably - if you wait another 30 seconds - the > variables are back? - this is very strange? - here are the files I have > setup to illustrate this problem. > Im using the default php-ini file - so no weird session expires or garbage > collections stuff. Do you know if your hosting company has a multi-webserver setup? If so, do they have a shared /tmp directory (where PHP stores session information), or is it unique to each server? If your hosting company has many different webservers, each reload might hit a different one, and each may or may not have your session information in its /tmp directory. A solution is to write your own session handlers, using a database, the shared portion of the filesystem, or some other method of preserving the data. Otherwise, have you checked with your hosting company to see if this is a common issue that their customers have? -- [ joel boonstra | jboonstra@gospelcom.net ]

« previous php.general (#121738) next »