SESSION variable

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I have a variable I would like to put in the $_SESSION array.
However, I am not accessing this through a PHP script but am instead
returning this to a javascript function through an AJAX call.  I need
to set this as part of the session.  Can I either:

1.)  Set the session variable within the script that is called through
the AJAX call.  Will I be able to call for this on successive pages?
The page is accessed only through the AJAX call so will the SESSION
variable be set properly?


2.)  Is there a way that I can pass the data received back from the
AJAX call (in a javascript function) into a PHP function in the same
document to then set it in the session?

The call is being made through the AJAX call and this cannot be

Thanks for any insight.


Site Timeline