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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -