Search code examples
phpsessionforumphpbb

Telling a php session's name?


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!


Solution

  • You can see the dump of $_SESSION variable

    var_dump($_SESSION);