close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Rstrict Access to Pages?

Thread began 8/01/2011 2:37 pm by Cologne | Last modified 8/01/2011 3:51 pm by Cologne | 868 views | 4 replies |

Cologne

Rstrict Access to Pages?

Hi,

SA2 is installed, and it seems that it dont restrict access to my pages?

I set:

allow if - Session(ID) > 0
allow if - Session(confirm) = 1
allow if - Session(allow) = 1

confirm and allow are 0 in my database but the user gets access? It restricts if the user dont exist.

Whats wrong here?

Please help,
Denis

Sign in to reply to this post

Jason ByrnesWebAssist

security assist rules with multiple conditions only need one condition to pass to be considered success ful.

if you need all try conditions to pass, you should create 3 separate rules and modify the page access code to use each one:

php:
<?php
if (!WA_Auth_RulePasses("Rule 1") && !WA_Auth_RulePasses("Rule 2") && !WA_Auth_RulePasses("Rule 3")){
    
WA_Auth_RestrictAccess("login.php");
}
?>
Sign in to reply to this post

Cologne

so i better set all to disallow?
or the id at the end?
where is the readon i can insert lots of ifs if it does not work?

strange,
denis

Sign in to reply to this post

Jason ByrnesWebAssist

when you multiple conditions in a rule, only ione of the conditions needs to pass fot the rule to be considered true.

if all conditions must pas, you should create a separate rule for each condition and edit the restrict access code like the example from my previous reply.

Sign in to reply to this post

Cologne

I changed it to disallow.

disallow: confirm = 0
disallow: allow = 0
allow: ID > 0

that works :-)

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