JQUERY & $_SESSION
JQUERY & $_SESSION
Hi I'm stuck with the following problem,
I am using the $.ajax to make a post request using the url: page.php. The page.php contains a function that sets the $_SESSION['res'] valiable. The problem is that the function in the page.php is executed and sets the $_SESSION['res'] successfully, but when the ajax request completes the $_SESSION['res'] does not exists. I have examine the session id before, during and after the ajax request and is the same.
What is the problem? Is there any solution or a workaround to set some data during the ajax request and get that data after the request completes?
Thanks a lot !!!