Jump to content

[SOLVED] Session


forumnz

Recommended Posts

I have sessions working on my site - all fine.

 

I call a menu from the root level on the homepage by including menu.php and on /SecondLevel by calling ../menu.php.

 

The menu checks if session is set, and if it is then it displays Logout, and if not, it displays Login. Problem is, on my homepage it works fine, but on my /SecondLevel it displays Login instead of Logout.

 

Hope that makes sense - anyone know why?

 

Here is the menu code snippet for reference:

 

<?php if(!isset($_SESSION['SESS_MEMBER_ID']) || $_SESSION['SESS_LEVEL_ID'] != '1'){ echo "<a class=\"one\" href=\"/Login.php\">Sign in</a>"; } else { echo "<a class=\"one\" href=\"/Logout.php\">Logout</a>";}?>

Link to comment
https://forums.phpfreaks.com/topic/88147-solved-session/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.