Value not in session
When I login to Admin the UserID, UserGroupID are not being set in session. Even when I try to set them, they are not showing up when I put in
<?php echo $_SESSION['UserGroupID']; ?>.
When I login to Admin the UserID, UserGroupID are not being set in session. Even when I try to set them, they are not showing up when I put in
<?php echo $_SESSION['UserGroupID']; ?>.
i dont see in either of the pages that you sent where you are trying to echo the session variable.
sometimes you have to force PHP to find the session. On a page that you are trying to echo session variables, you should include the following code:
<?php @session_start(); ?>
<?php echo $_SESSION['UserGroupID']; ?>
What I'm trying to do is when you try to access the admin section, the admin menu is always visible even when you not log in. See link below.
admin
I created an Access Rule and Access Group and apply it menu.php but it's not working because the groupID is not in session even though I try adding it. See attachment.
I'm trying to make the menu visible only when you login to the admin section.
I see, so your trying to use the session in an access group.
When setting u access groups, it's easy to add a blank value. make sure there is not a blank member of the access group.
try click bellow the 7 in the list of groups, if you can select a row bellow the 7, there is a blank member to the group that needs to be removed.
I just realized that it wasn't working only for the Super User because it was in kfm_users table and not the users table so I went and added <?php echo $_SESSION['AdminLogin']; ?> to my rules access and it works.
One thing I'm trying to wonder when I click and close a window my session don't get cleared and you are still login, shouldn't it clear the session and the individual logout?
no closing a browser window wont end the session, you would need to close the browse completely to end the session, or go to the logout page.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.