Re: session var not changed if file not found error

From: Date: Wed, 26 Mar 2008 13:47:02 +0000
Subject: Re: session var not changed if file not found error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-272119@lists.php.net to get a copy of this message
On Tue, March 25, 2008 8:29 pm, Eric Wood wrote: > This has baffled me all day on my FC6 php-5.1.6 based server. > > On a normal working page, I set a session variable at the top and > another session variable in the middle of the page/script. This page > has no errors nor missing links. So everything works great. > > Now, if I cause at least 1 image in the page to become missing on the > server (ie, by deleting a .jpg file), then Apache logs the error as > usual, ie: "File does not exist". But in addition, my two session > variables seem to get deleted. If I put the picture(s) back, then no > apache errors, and my session vars are set fine. > > I've even enabled detailed php error reporting and I get no errors. > > Is this normal session behavior? Please say no. Any ideas? I can't > understand why missing links would cause a session variable's > annihilation. It's not normal. Perhaps you have some kind of 404 error handler that is destroying the session. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

« previous php.general (#272119) next »