close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

page redirect

Thread began 11/16/2009 4:18 am by diamou_fr200291 | Last modified 8/30/2010 11:07 am by Jason Byrnes | 1416 views | 7 replies |

diamou_fr200291

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

Sign in to reply to this post

Jason ByrnesWebAssist

In the WA_SecurityAssist/helper_PHP.php file change:

php:
function WA_Auth_RestrictAccess($redirectURL){

    $redirectURL = WA_Auth_BuildRedirectURL($redirectURL, FALSE, TRUE);
    header("Location: ".$redirectURL);
    exit();
}




to:

php:
function WA_Auth_RestrictAccess($redirectURL){

    $redirectURL = WA_Auth_BuildRedirectURL($redirectURL, FALSE, FALSE);
    header("Location: ".$redirectURL);
    exit();
}
Sign in to reply to this post

diamou_fr200291

Thank you very much Jayson. I have changed the codes and everything is working fine now.

Sign in to reply to this post

Jason ByrnesWebAssist

You're welcome.

Sign in to reply to this post

diamou_fr200291

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

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

diamou_fr200291

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

Sign in to reply to this post

Jason ByrnesWebAssist

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.

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