Jump to content

da_beaver

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

About da_beaver

  • Birthday 08/25/1975

Contact Methods

  • Website URL
    http://

Profile Information

  • Gender
    Not Telling
  • Location
    England

da_beaver's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. [!--quoteo(post=354872:date=Mar 14 2006, 01:35 PM:name=obsidian)--][div class=\'quotetop\']QUOTE(obsidian @ Mar 14 2006, 01:35 PM) [snapback]354872[/snapback][/div][div class=\'quotemain\'][!--quotec--] do you have register_globals turned on? i found that one of my scripts behaved this way when i installed it on a server with register_globals on. what happened was that i had a $_SESSION['user'] variable, and on one page, i also had a plain $user variable. well, needless to say, with register_globals on, it overwrote my session variable anyway. [/quote] I've just checked the .ini file and register_globals is set to off. Thanks for the advice though, I hadn't thought of checking that.
  2. Hi, I am setting session variables on a page then doing a header/location redirect to a second page however I am losing one of my session variables. Not all of them, just one. Here are some details/comments: I am doing a session_start() on ALL of my pages, right at the top of each page I have tried session_write_close() before doing the redirect A print_r of $_SESSION on the first page shows all of the variables intact before the redirect is attempted There is nothing in the code or in an included file that unsets/destroys/overwrites the session variable. The code that sets the variable is not within an output buffer PHP version 4.3.1, Apache version 2.0.5.2 running on Windows 2000 Surely this shouldn't happen? If I was losing the entire session that would kind of be understandable but losing ONE variable out of about 10 or 11 is very strange. Has anyone experienced this before or can anyone offer an explanation? Let me know if you need any further details. Thanks for any advice offered.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.