close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to change the redirection when a user logs in

Thread began 10/04/2009 6:46 pm by david385393 | Last modified 11/17/2009 3:55 pm by Ray Borduin | 3704 views | 7 replies |

david385393

How to change the redirection when a user logs in

Hi, Can someone please explain how I can change the redirection that takes place when a user logs in. At the moment they are taken to the profile page which has a link to the protected page at the bottom. I would like to implement the system whereby the user would login and be taken directly to a page with the protected content. I would also like to include a logout page on the protected page. ( would the logout page be necessary do you think??)

Sign in to reply to this post

Jimmy Wu

On your users_Login.php page, find the line of code that reads like this:
"successRedirect" => "users_Profile.php",

That is the successful login redirect page. Change the users_Profile.php to the page you want the user to be redirected to after logging in. Note, this is a relative link to the page you want to forward to.

Yes, it'd be a good idea to allow the users to logout when they're on the restricted pages.

Sign in to reply to this post

david385393

Thanks

Hi again , Thanks for the info, I've changed the necessary and everything is fine.

Cheers
David

Sign in to reply to this post

Jimmy Wu

Great to hear. If you have any additional issues, please feel free to open a new thread.

Sign in to reply to this post

rob294118

Redirect

How would you direct the person to the protected page that they were trying to access rather than going to the profile page?

Sign in to reply to this post

Eric Mittman

Inside of the Security Assist authenticate user server behavior there is a check box for "Go to previous URL (if it exists)". If you have this checked the user should be redirected back to the page that they came from where they were denied access. If the user just goes directly to this login page then it will take them to the page listed as the redirect page.

Sign in to reply to this post

rob294118

I already have that, it doesn't work. Jason helped me one time. I had to do 1 more thing.

Sign in to reply to this post

Ray BorduinWebAssist

How are you redirecting them to the login page in the first place? You may need to add the url parameter accesscheck=[pagename] when sending them to the login page in the first place.

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

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