We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13610
    • 52 Posts
    I created my own session variables in a snippet and then executed the page, then navigated to another page that displayed data based on the sessions I set.

    I then closed my browser (Chrome) opened it back up and noticed that all the session variables were still set.

    I then opened IE and Firefox and pasted the link to the page and those pages where also displaying the Session related information.

    I then cleared the Cache in Modx/Manager and then values went away.

    How do I keep these pages from caching as each users needs to see different information based on Sessions that are set specific to them.

    TIA,

    Jason

    Thanks,

    found the answer.... UNCHECK THE CACHEABLE checkbox in the page settings.
      Jason Buck
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: jasonabuck at Jan 08, 2010, 11:52 AM

      How do I keep these pages from caching as each users needs to see different information based on Sessions that are set specific to them.

      found the answer.... UNCHECK THE CACHEABLE checkbox in the page settings.
      Or, you can do it without making the entire page uncacheable by making sure none of the session information appears in cacheable content on the page; i.e. is safely embedded behind an uncached snippet call like:
      [!GetSessionData? &tpl=`someChunk`!]