Now you see it, now you don't sessions

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

This one has me completely stumped. I have a simple site where I'm
using sessions to keep track of some information across multiple
pages. The trouble is, when I go to a page that displays the
information, sometimes I can see the information and sometimes I
can't. If I refresh the same page, the information may appear or not
in a completely random manner. And nothing is writing to the session
variable anywhere in the page.

I have displayed the information and it is definitely not there when
the information does not appear. I have checked the session id and it
remains the same regardless of whether the info appears or not. The
code runs fine on my local server (PHP 4.3.2) but not the ISP's server
(PHP 4.1.2).

My question is
- What on earth is going on here?
- And if the info is wiped out of the session array on a particular
page request, how does it reappear at some random page refresh?

Any ideas or thoughts from anyone would be greatly appreciated.


Re: Now you see it, now you don't sessions

Quoted text here. Click to load it

Likely a configuration issue. Post a complete, small example of code that
exhibits the problem. Once a code issue has been eliminated, we can examine

 - Virgil

Site Timeline