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

Applying Rules either aren't working, or I'm not getting it

Thread began 3/21/2011 3:23 am by Lon Winters | Last modified 3/23/2011 9:41 am by Jason Byrnes | 1166 views | 6 replies |

Lon WintersBeta Tester

Applying Rules either aren't working, or I'm not getting it

I read the documentation in the Solution Recipe and one thing stood out. The different Access Levels made sense, but when the Administrator rule is applies to the pages with a value that equals three, How does this give Access to the two levels below? Shouldn't it be less than or equal to 3?

Is it necessary to check for the presence of the Session that holds the User ID AND the Access level, or is just the access level enough?

Finally, when I go to set a rule and choose the Grant Access (Rule) and the Not version of the rule, nothing seems to change on the page code-wise - is it supposed to or is this change made in the Helper File?

Sign in to reply to this post

Lon WintersBeta Tester

Ok, I went back into the videos and learned how to make groups and it works fine. Except for one exception, and I can't figure this one out.

When trying to access a restricted page via a bookmark or direct link, it takes me to the login page as expected. The login page is set to direct to a certain page upon successful login, and the go to previous URL box is unchecked, along the the other box, and both lines of code end in FALSE as they should.

But it always tries to take me to that original direct link. If I log in with an ID that has the access, that's where it goes, not the link specified in the dialog. If I try logging in with an ID that doesn't have access to that page, it just loops me back to the login page.

How do I prevent this?

Sign in to reply to this post

Jason ByrnesWebAssist

on the login page, set the action of the form to:

php:
 action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""?>"
Sign in to reply to this post

Lon WintersBeta Tester

Thanks Jason, I did get that to work - but I had to remove the second PHP statement.

Does that sound right? To clarify, my objective was to always go the the specified page in the login behavior, no matter what page was attempted to be accessed via a bookmark.

Sign in to reply to this post

Jason ByrnesWebAssist

I misunderstood that you wanted to only be directed to the success page specified in the login behavior.

in that case, then yes, only use the first part of the code in the forms action:

php:
 action="<?php echo $_SERVER["PHP_SELF"]; ?>"
Sign in to reply to this post

Lon WintersBeta Tester

Good deal. Now I have the solution for both scenarios should I need them.

Thank you again for the excellent support.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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