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

Having Trouble with Security Assist

Thread began 9/20/2013 1:43 pm by FredW | Last modified 9/20/2013 10:39 pm by FredW | 1636 views | 8 replies

FredW

Having Trouble with Security Assist

I am assuming I am missing something obvious. I have used the DW Login/Authentication behaviors for years, with no problems but I wanted the extra features of the WA versions. I am using PHP/MySQL

First off, it's looking for the values from my users table (called 'users') : User ID, User Name and Password. So I initially set them as:

User ID -> users.Email
User Name -> users.FirstName
Password -> users.Password

But the logon.php page was prompting for User Name which confused me, so I made both User ID and User Name map to users.Email

So when I log on it seems to work. I see "login.php?loggedIn=1" in my address bar.

Then I created a new page (logtest.php) and selected Server Behaviors -> Web Assist -> Security Assist -> Secure Page and when it asks for a rule I select "Logged in to users" and redirect to login.php on failure.

The problem is it aways fails, I always get redirected to logon.php

Here is my logtest.php page:

<?php require_once( "webassist/security_assist/helper_php.php" ); ?>
<?php
if (!WA_Auth_RulePasses("Logged in to users")){
WA_Auth_RestrictAccess("login.php");
}

@session_start();
?>

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>testing</title>
</head>

<body>
<p> You are logged in </p>
</body>
</html>

Checking my server variables I see I have:

SecurityAssist_ID xx@yyyy.com
FirstName Fred
Admin 9

The last two are values from my users table.

I am at a total loss. I've been working on this for hours, trying all sorts of combinations. i'm sure I'm just missing something simple.

Thanks in advance for any help.

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