开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜