jquery - Unable to access session variable in php script called using ajax -


Consider the following scenario: I have three PHP files, file1.php, file2.php and file3.php on my server Is located, File1.php starts the session and says a session variable, var I am able to access var by using $ _SESSION ['var'] in file2.php File3.php using jquery ajax functionality , But im $ _SESSION ['var'] is unable to access in file3.php. If I do a gettype ($ _ session ['var']) in file3.php, then it gives zero what can be the problem here?

Please help

My test should do this work. What is happening, if you do not have sessions to use cookies and they are being attached to the URL, then you have to pass the SEH hash through GET, using the proper name set in php.ini Uploadee script

But a bunch of inconsistencies, especially in that paste, you do not need to change the name of every part of your code, only need to post related sections


Comments