close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Security Asssit User (Groups/Levels)

Thread began 5/29/2012 4:23 pm by Doug Levy Designs | Last modified 5/31/2012 7:43 am by Jason Byrnes | 744 views | 3 replies |

Doug Levy Designs

Security Asssit User (Groups/Levels)

I'm trying to use groups Table GroupID: which i have as 1=user. 2=board 3=admin, I confirmed these tables in my database and now want to apply as: protect page controlpanel.php for admin only, I created a access rule allow if: <?php echo $_SESSION['UserGroupID']; ?> = 3 and applied to the page from server behaviors.

I get redirected to the login in page, but when I attempt to login I get no response, no errors (that i can see).

Thanks for your help

Sign in to reply to this post

Jason ByrnesWebAssist

make sure the action of the login form, uses the following code:

php:
 action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".htmlspecialchars($_SERVER["QUERY_STRING"]):""?>"




if you continue to have problems, send a copy of the login page in a zip archive please.

Sign in to reply to this post

Doug Levy Designs

It works if i choose logged in to users but not groupid

I have the code already in the login form, and works fine with the template logged in to users?

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

Jason ByrnesWebAssist

Neither of the authenticate user behaviors on this login page are configured to set a session named UserGroupID.



you will need to edit Both of the authenticate user server behaviors, go to the session tab, click the plus button and select the UserGroupID column to store the User Group ID when the user logs in.

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...