开发者

get session in php page

开发者 https://www.devze.com 2023-02-08 00:46 出处:网络
how can i get all the SESSION variabl开发者_高级运维es in a particular php page?you can get it by

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消