Empty $_SESSION superglobal on AJAX request, but session ID is preserved
问题 I'm having problems with $_SESSION superglobal on AJAX request. session_start() function is called before any session coding. Session ID is also the same in the calling code and the AJAX response code (tested by echoing session_id() in both scripts). AJAX PHP file is on the same domain. Everything should work as defined by standards, but when I do print_r($_SESSION) in the called AJAX script file I get Arrray( ) output. I've hit the brick wall... I don't know why is this not working...