I have a main page that starts a PHP session, which creates session ID #1. I check this with session_id(). I want to access these session variables from a PHP AJAX script. To test this i just simply execute:
session_start();
echo session_id();
from this AJAX script. It returns a different AJAX session ID.
I know I can pass the session ID from the main page to the AJAX script. Is there another way to make the AJAX script open the same session by default?
For clarification I am doing this via javascript, more specifically it is the add/edit script for JQGrid.