tags:

views:

37

answers:

1

Hello,

Consider the following scenario. I have three php files, file1.php, file2.php and file3.php located on my server. file1.php starts a session and sets a session variable say,var. I am able to access var using $_SESSION['var'] in file2.php. file3.php is called using jquery ajax functionality, but im unable to access $_SESSION['var'] in file3.php. if i do a gettype($_SESSION['var']) in file3.php it returns NULL. What could be the problem here ?

Please help Thank You

A: 

From my tests it should work. What could be happening is if you do not have sessions set to use cookies and they are being appended to the url, you would need to pass the session hash via GET, using the proper name set in the php.ini, to the uploadify script.

But there are a bunch of inconsistencies, especially in that pastie, you do not necessarily have to rename every part of your code, just need to post the relevant sections.

Brad F Jacobs