close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Going directly to a protected page doesn't work

Thread began 7/07/2015 9:44 am by Mags | Last modified 7/07/2015 3:28 pm by Ray Borduin | 936 views | 4 replies |

Mags

Going directly to a protected page doesn't work

I have a problem on one of my sites whereby if you try to go directly to the URL of a protected page, i.e. www.mywebsite.com/protected/page.php, it will take you to the login page as it should, you login but then you get the unsuccessful login page I've set up, i.e. access-denied.php. As long as you're already logged in though and you try to access the page, it will load no problem. I've checked the settings on the login page and have both "Pass original querystring on redirect" and "Go to previous URL(if it exists)" checked. I want to be able to email users with a direct link to certain pages but instead I have to just give them the link to the login page and then tell them to go to the specific page, which isn't ideal. Any idea what might be causing this?

Sign in to reply to this post

Ray BorduinWebAssist

If you post the URL and a username and password for me to test then I'll look into it. I haven't seen that happen before, so I'd have to debug it to figure out why this happens.

Sign in to reply to this post
Did this help? Tips are appreciated...

Mags

That would be great thanks - details in PM section.

Sign in to reply to this post

Ray BorduinWebAssist

It looks like when you applied restrict access to page to the pages, you specified the failed redirect to go to the page: access-denied.php

Then that page has restrict access to page set to go to the login page.

That means that the last page restricted was the access-denied.php page, and therefor that is the page it sends them back to.

You need to update the restrict access to page on the products.php page to take them to the login.php page directly on failure. Then it will return them to that page properly after login.

Sign in to reply to this post
Did this help? Tips are appreciated...

Mags

That's exactly what was wrong, working now thanks!

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