ajax - Why php doesn't see the $_SESSION[] array anywhere? -


i'm writing php code processing lot of data, interactively. in starting php page call function session_start() before sending other data browser. then, put data $_session[] array, this:

$_session['something'] = $variable; 

after, there form, sent via , xmlhttprequest.

getrequest.open("get", "data_processing.php?var="+onevalue+"&another_var="+twovalue, true) getrequest.send(null) 

another php script recieves user data get, , there i'd use data stored in $_session well. $_session seems empty. i've never used sessions, correct way make available variables consequent php scripts?

are sure called session_start first?

see: http://php.net/manual/en/function.session-start.php


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -