Session variables through AJAX

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
anp24
Forum Newbie
Posts: 13
Joined: Wed Jul 11, 2007 6:34 am

Session variables through AJAX

Post 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
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: Session variables through AJAX

Post by Zoxive »

Sessions are the exact same with Ajax as any other page.

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