Access secure pages after loggin
Hi I have created a login page, with
e-mail
password
remember my details
auto log in
I have created a secure log in successful page using SecurityAssist, which works fine - it prevents the page being accessed directly. the user has to be logged in successful to the users table before access is granted, if access is denied (user is not logged in to the users table) it will take them to the log in page and they have log in to have access.
The problem I am facing is that even after the user has logged in with the correct e-mail and password access is denied to the log in page and the user is taken back to the log in page (index.php) with the following in the address bar:
http://www.hackneyhydroponics.co.uk/demo/index.php?accesscheck=%2Fdemo%2Flog-in-successful.php%3F
What am I missing? I have been through the post in the forum but can not find a solution.
After adding the secure page function using SecurityAssist the following code was added to the page:
<?php require_once( "../webassist/security_assist/helper_php.php" ); ?>
<?php
if (!WA_Auth_RulePasses("Logged in to users")){
WA_Auth_RestrictAccess("index.php");
}
?>
I have also tried this using the Mange Site Access > Site Access Manager