get session in php page
how can i get all the SESSION variabl开发者_高级运维es in a particular php page?
you can get it by
foreach($_SESSION as $k=>$v)
echo "$k=>$v";
OR
print_r($_SESSION)
OR
var_dump($_SESSION)
It is to be remember that php $_SESSION is a global array.
var_dump($_SESSION);
would give you all the session stuff associated with the server it is requested from.
But because your question is unclear, I have no idea if this is what you're looking for.
精彩评论