Losing Sessions
| From: | Paul Liebrand | Date: | Wed, 16 Jun 2004 04:24:29 +0000 |
| Subject: | Losing Sessions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-188368@lists.php.net to get a copy of this message | ||
I am hosting a web site on tierranet and throughout the day sessions get
lost. If I take the exact same code and run it on my Windows machine, I can
run it for a week straight without any problems. I have not been able to
figure out the problem and was wondering if anyone can provide any
assistance or feedback.
At the top of most of my pages I have the following piece of code:
if (!session_is_registered("valid_user")) {
header ("location: logon.php");
}
Obviously when the session gets lost, this piece of code redirects the user
to the logon page. I have looked through my code and cannot figure it out (i
do not believe it is a code problem).
The server is running PHP 4.3.4
Please -- someone help!
Paul
Version: 6.0.705 / Virus Database: 461 - Release Date: 6/12/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.705 / Virus Database: 461 - Release Date: 6/12/2004