php - Is sending data using $_SESSION instead of $_POST a good thing? -


i saw many , many questions sending data using $_post without form.

let's receive web (e.g. through api) , page told api return data receive.php , want data accessible every page (data such access token user's facebook public profile etc.)

some of answers said use ajax or jquery send form (which think it's going slow down receive.php page).

some of them said can use $_post['foo'] = $foo (which tried, didn't work, it's shouldn't)

some of answer use $_session think it's making sense if it's session related thing such user's token facebook, if it's public profile , such won't use $_session make no sense? , practice?

$_session intended store data in order share between different requests. $_post intended send , receive data won't persisted between requests (unless data sent , forth between requests).


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -