How do I access session variables that were set outside of Grav CMS?
In my user system.yaml file I have set the following:
session:
enabled: true
initialize: true
timeout: 3600
name: gravsite
uniqueness: path
secure: false
httponly: true
samesite: Strict
Within my theme folder I have a mythemename.php file which contains the following:
<?php
print_r($_SESSION);
?>
But this gives me an empty array response. If I browse back to my code outside of Grav, I can see the session variables are still set but it seems when I am in Grav, I am unable to access them. How do I get around this?
Both my application outside of Grav and Grav CMS are all in the same web server and running on the same domain - I have the whole of Grav CMS files in a subfolder.