keep a variable for all pages in memory from the url
TLDR: Use a cookie Why Not PHP Sessions? PHP sessions don’t work on most hosts ( e.g. WP Engine which say in their docs they do not support PHP sessions ). PHP sessions are incompatible with caching CDNs, caching proxies such as Varnish, and caching plugins. They rely on a session ID stored in a … Read more