While using the sessions in my PHP script I wanted to pass the session variable to the PHP called script. But the session variables are not being called as the session_start() function could not be used after the HTML code. I am using the simple Javascript AJAX. Please provide me the path.
Share
I think what you need is the following:
in your php-script you open/request with ajax, you have to add in the first line:
This way, you have access to the variables you stored in your session where you called the request with ajax