Re: Disappearing session variables
- From: Pink Pig <bill@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 5 Aug 2008 10:06:56 -0700 (PDT)
On Aug 5, 3:09 am, Geoff Berrow <blthe...@xxxxxxxxxxx> wrote:
You mentioned the get_browser() function. Is your script designed to
react to different browsers in any way?
Very slightly. If the browser is IE, then I load a different style
sheet, but that's it. I was a bit leery of get_browser() anyway, so I
switched to HTTP_USER_AGENT instead, and loaded a different style
sheet for HTTP_USER_AGENT == "Mozilla/4.0 ..."
There are some differences, e.g. the content of the database is
different between the two hosts, but I can't see why it works with
Firefox and Opera but not IE. My daughter tested it with IE7, and
reports that it behaves the same as IE6 in this case.
I've googled this issue a lot, and it seems to be a common problem,
but the proposed solutions seem a bit ad hoc to me -- I always hate
making a problem go away without figuring out the cause, since it
usually comes back to bite me later.
I added a bit of debugging code to track the _SESSION keys at various
points. I should make a table of the expected versus actual results,
so let me give it a shot here:
Initially | After login | After search
Expected: <none> | pdata;sid;prospectID |
pdata;sid;prospectID;srchlast;sqlvars
Actual: <none> | pdata;sid;prospectID | srchlast;sqlvars
Note that the lost keys were the ones set by the login -- the search
worked fine, and set the keys 'srchlast' and 'sqlvars'. The search
results were identical.
I forgot to check session_id() -- I'll add that and check again.
.
- Follow-Ups:
- Re: Disappearing session variables
- From: Michael Fesser
- Re: Disappearing session variables
- From: Pink Pig
- Re: Disappearing session variables
- References:
- Disappearing session variables
- From: Pink Pig
- Re: Disappearing session variables
- From: The Hajj
- Re: Disappearing session variables
- From: Pink Pig
- Re: Disappearing session variables
- From: Geoff Berrow
- Disappearing session variables
- Prev by Date: Re: .htaccess style rewrite with php
- Next by Date: PHPGB - Guestbook
- Previous by thread: Re: Disappearing session variables
- Next by thread: Re: Disappearing session variables
- Index(es):
Relevant Pages
|