Support » Fixing WordPress » Session variable unset :(

  • Argghhh, my session variable seems to unset when I change page.

    I set the variable in one post like this:
    <phpcode><?php $_SESSION['SubRegionId'] = '10';?></phpcode>

    And then I assume that I can access it in a second post when I click the link to it in the first post (“Kort over Forenede Arabiske Emirater”).

    Unfortunately the session variable is gone when the second page is loaded.

    I have checked my code several times and I have no unset of the session variable anywhere.

    Any idea what is going wrong?

    Thanks, Madsphi

  • The topic ‘Session variable unset :(’ is closed to new replies.