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?
Comments
Post a Comment