Re: Disappearing session variables



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.
.



Relevant Pages

  • Re: Keyboard test page updated
    ... Keyboard handling is one of the hardest cross-browser issues. ... Looks good to me at this point, having tested numerous browsers ... Control or Meta keys). ... keypress events on keydown after sniffing out certain browsers (e.g. ...
    (comp.lang.javascript)
  • Re: Congrats to jquery
    ... to me that among the major browsers of the time all but Chrome ... returned the values for objects (not including arrays) in a consistent ... order keys so they can be used effectively. ... depending upon underspecified behavior. ...
    (comp.lang.javascript)
  • Re: Determine Available Browsers
    ... You can plan for most browsers by checking ... I have Firefox, K-Meleon and Opera installed. ... also check the Uninstall keys. ... I don't know much about accessing the registry by keys etc. ...
    (microsoft.public.vb.general.discussion)
  • Re: Robin Cook in walking accident
    ... I was just walking past it, and tapped a few keys. ... >>basics of multiple launchy apps with type 1 browsers? ... An animal wot snuffles in trees and bushes and suchlike, ...
    (uk.rec.walking)
  • Re: Laptop key problem
    ... The keys A S D F J K L don't work on my laptop. ... common problem. ... The keys do work but only when another letter is held on eg n. ... provided liquids were not involved;) ...
    (comp.sys.laptops)