Session data randomly lost.

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

Threaded View
Hi All,

When viewing my php page using IE6.0, I am losing my session data.

In the first page I am setting a value to the session variable. In the
next page  "SOME TIME"  the value of the session variable is not same
as what I set in the previous page. My session data is lost.

This is happening very frequently in IE6.0 sp2 and very less frequently
in IE6.0 sp1.

In my php script I am using Ouput Buffering. If I disable my Output
Buffering php script works fine, Session data is not lost. The random
loss of session data is happening only when Output Buffereing is

I donot understand the dependency between Ouput buffering and IE. I
donot want to disable the ouput buffering also. Can anybody help me out
in fixing this problem.


Re: Session data randomly lost.

Not really sure if it will help, but try flushing the output buffer
after you set your session variables with ob_end_flush()

Site Timeline