We launched new forums in March 2019β€”join us there. In a hurry for help with your website? Get Help Now!
    • 17771
    • 14 Posts
    Hi,

    I am facing problems in reading the value of a cookie. After I set the cookie, I redirect it to another page using Header("http://....",false). Then in the redirected page I have a snippet that is used to retrieve the value of the cookie and print it. When I print it I dont get any value. But the browser shows me the presence of the cookie. Your help with this issue would be highly appreciated.

    Thanks

    Vinzu
      Vinzy
      • 28042 β˜† A M B β˜†
      • 24,524 Posts
      Are you sure it’s being redirected to the same subdomain (www. or not)? Exactly how you configure the cookie can make it very picky about where it can be retrieved from.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org