dongpengqin3898 2013-05-28 03:06
浏览 19
已采纳

告诉php会话的名字?

I installed a pre-built forum on my website and I want (in a diffrent page) to check if the forum's session is active.
Something like :

if (isset($_SESSION['forum'])) { echo "Session is active!"; }

Problem is - I don't know the sessions name... Tried downloading some chrome add-ons for session managing but I can't get the name of the session.

Whats the right way of doing this?
Thanks ahead!

  • 写回答

5条回答 默认 最新

  • dongming6201 2013-05-28 03:08
    关注

    You can see the dump of $_SESSION variable

    var_dump($_SESSION);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)
编辑
预览

报告相同问题?