close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Value not in session

Thread began 11/08/2012 6:47 pm by rogersds267040 | Last modified 11/09/2012 1:15 pm by rogersds267040 | 590 views | 6 replies |

rogersds267040

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']; ?>.

Attached Files
admin.zip
Sign in to reply to this post

Jason ByrnesWebAssist

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']; ?>

Sign in to reply to this post

rogersds267040

Value not in session

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.

Attached Files
New folder (4).zip
Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

rogersds267040

Value not in session

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?

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

rogersds267040

Value not in session

Thank you sir.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...