We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53390
    • 42 Posts
    Hi,
    I am trying to create a session variable in a php snippet. Example:
    // in custom php snippet
    $_SESSION['myVar'] = 1;
    

    And get two problems:
    1. Session data doesn't appear in the first response page. It appears just after refreshing the page.
    2. It is handled for the response and the next page only, the futher pages gets no data from $_SESSION. It's just empty.
    Any ideas why it behaves like that? Any similar experience?
    Thanks.