close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Help with login page

Thread began 7/19/2013 6:43 am by iainmacdonald331081 | Last modified 7/19/2013 8:27 am by Jason Byrnes | 564 views | 3 replies |

iainmacdonald331081

Help with login page

Not sure what's up here, but I have a log in page here:

http://www.handprintwebdesign.co.uk/login.php

Which is redirecting to the correct page, but is failing the access check on the 'logged in' rule.

I've tried removing the rule, and echoing the session variable:

UserID: <?php echo $_SESSION["SecurityAssist_UserID"];?>

Which draws a blank.

And I added in recordset:

SELECT * FROM users WHERE UserID = ParamUserID

where ParamUserID equals that session variable.

Without the rule, the correct UserID is displayed on the page.

But when I apply the rule again, it still fails the access check.

I've attached the login page and the page that's failing the check, with the rule, and without that recordset.

Any pointers appreciated.

Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist/security_assist/helpergrouprules.php file, how is the logged in rule defined?

Sign in to reply to this post

iainmacdonald331081

I assume its this bit:

case "Logged In":
$comparisons[0] = array(TRUE, "".((isset($_SESSION['UserID']))?$_SESSION['UserID']:"") ."", 2, "");
break;

Should it be:

case "Logged In":
$comparisons[0] = array(TRUE, "".((isset($_SESSION['SecurityAssist_UserID']))?$_SESSION['SecurityAssist_UserID']:"") ."", 2, "");
break;

Sign in to reply to this post

Jason ByrnesWebAssist

yes, the session crated by the login page is:
SecurityAssist_UserID

so that is the session that should be in the rule.

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