Losing session variables

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

Threaded View
I  have a page containing a form.  The page submits to itself and if the
data validates, stores the posted variables into a database and also
into a session.  I then use header to redirect to another page which
fetches the variables from the session array and displays them.

All works fine on the Linux test server. However the production server
is Windoze running PHP 5.  reg globals off I am intermittently losing
variables. from the session array

It's not a register globals issue - sometimes they are there sometimes
not.  The only other difference I can see is the session.gc.divisor
which is set to 1000

Anyone come across anything like this?

Geoff Berrow

Re: Losing session variables

Are you session-write-closing before redirect?  This may help:



Geoff Berrow wrote:
Quoted text here. Click to load it

Re: Losing session variables

Tom contained the following:

Quoted text here. Click to load it

Thanks Tom, I've actually coded round the problem now but I needed to
know what caused it and that might explain it.

Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

Site Timeline