|
Posted by Jeremy Epstein on 05/23/05 07:09
I've got a 4-page form that lets users enter a whole lot of information,
which is then submitted and emailed at the end. All the fields are
stored as session data.
The whole thing works fine:
1. On my local box (WinXP / Apache2 / PHP4) using IE6
2. On my local box using Firefox1
3. On my hosted server (RHLinux / Apache1.3 / PHP4) using IE6
But when I try it:
4. On my hosted server using Firefox1
Then every time I continue to the next page of the form, all session
data is lost, except for the fields that were just submitted on the
previous page.
So say, for example, you're on page 4 of the form. Everything submitted
on page 3 is stored as session data, but the stuff from pages 1 and 2 is
gone.
I'm storing the session data using cookies - I think this is where the
problem may be. Is Firefox somehow losing the cookie everytime it goes
to a new page?
I'm using the $_SESSION[] variable directly, not ever using
session_register(). I'm calling session_start() at the start of each
page. In my php.ini, I have session.use_only_cookies on, and
session.use_trans_sid off.
Any ideas? This is really frustrating me - I'm tearing my hair out
trying to get it to work!
Cheers,
Jeremy.
[Back to original message]
|