Page 1 of 1

Session variables through AJAX

Posted: Wed Jun 25, 2008 12:30 am
by anp24
Hello,
How do I Set and send session variables through AJAX from one PHP page to other. I am sending the values of form fields through parameters of AJAX POST , but I am not getting the values in other PHP Page, although I can see the value in "ResponseText"

Thank you

Re: Session variables through AJAX

Posted: Wed Jun 25, 2008 10:05 pm
by Zoxive
Sessions are the exact same with Ajax as any other page.

Just make sure to call session_start() before any output.