so in my php I have something like this
$_SESSION['opened'] = true;
But It will not be set to true until user will perform some actions with some other html\php pages
So I need on some Ajax function to be able get this session variable. And some PHP sample of function to get variable in form ready for Ajax to get it.
so I need something to AJAX requesting to an action (to some simple php code) which will return a value from $_SESSION.
How to do such thing?