PHP script unable to access session data if called using ajax -


If I call a php script using ajax im, then using the session variable set by another php script , Although both scripts are the same domain, and I have session_start () in both scripts. Although if php script is said directly, then it is able to use session variables. Why does this happen ?. Any way to fix the problem?

Please help thank you.

Use something like Firefox or to see that when you go directly to URL or Ajax Most session cookies are not being sent properly (or at all) with AJAX calls, so a new blank session is being created.


Comments