How to get session variables from php server with Ajax function? (PHP HTML JS Ajax)
Posted
by Ole Jak
on Stack Overflow
See other posts from Stack Overflow
or by Ole Jak
Published on 2010-05-04T12:25:32Z
Indexed on
2010/05/04
12:28 UTC
Read the original article
Hit count: 236
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?
© Stack Overflow or respective owner