Hi,
I have a page that makes calls via JavaScript (fetch) another modx page with a snippet on it to get data and format the result, I have found that I even if I use unset($_SESSION[“Data”]);
and session_destroy(); When I refresh the page the session variable is still set.
If I set use and unset session variables in a snippet within the page I am using for example index.php?id=2 it is fine, but if I use javascript to call say index.php?id=6 to get data and unset the session variable it will do it locally with the snippet but refresh and the session variable can still be accessed.
I am probably not understanding the scope here so would some please help me understand.
modxcloud modx 2.8.1 php 7
Cheers
Karl