page redirect
Hello,
I would like to know how to take out the /login.php"?accesscheck=%2FFolder_Name%2FPage_Name.php%3F and have only login.php when being redirected to the login page after trying to access a protected page.
Thanks in advance
Hello,
I would like to know how to take out the /login.php"?accesscheck=%2FFolder_Name%2FPage_Name.php%3F and have only login.php when being redirected to the login page after trying to access a protected page.
Thanks in advance
In the WA_SecurityAssist/helper_PHP.php file change:
function WA_Auth_RestrictAccess($redirectURL){
$redirectURL = WA_Auth_BuildRedirectURL($redirectURL, FALSE, TRUE);
header("Location: ".$redirectURL);
exit();
}
to:
function WA_Auth_RestrictAccess($redirectURL){
$redirectURL = WA_Auth_BuildRedirectURL($redirectURL, FALSE, FALSE);
header("Location: ".$redirectURL);
exit();
}
Thank you very much Jayson. I have changed the codes and everything is working fine now.
Hi Jason,
I know this is an old thread. But with the same settings described previously, I would like to have the user to be redirected to the previous page after login.
This works when I leave the /login.php"?accesscheck=%2FFolder_Name%2FPage_Name. php%3F, but if the URL is only /login.php, I am always redirected to the default page.
Thank you in advance for your help
the access check variable in the querystring is what controls whether you will be redirected to the previous page.
if the page is not passed to the login page using the accesscheck variable, the login page has no way to know what the previous page is.
Hi Jason,
Thanks for your reply. I understand that the querystring is necessary in that case.
Actually, what I want is (almost) the same structure as the "mywebassist" from the webassist.com page.
For example, when I try to access to my userprofile.php page without logging in, I am redirected to the login page without that accesscheck paramater in the url, and once I'm successfully logged in, I am redirected to the previous page (userprofile.php).
So question is, how can I do that ?
Thanks in advance
Security assist does not support this.
the access check URL parameter must be present for the redirect to function, you cannot do the redirect with passing the access check variable.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.