Welcome to WebmasterWorld Guest from 54.210.61.41

Forum Moderators: ocean10000

Message Too Old, No Replies

ASP.net redirect after logged in

     
4:59 pm on Jun 18, 2010 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 24, 2005
posts:429
votes: 0


I see this often and am wondering if something needs to be added to the web.config file.

What happens is this ->
If you click on a link to a page, but your session expired. You then log in, but are redirected to the page you were trying to access. I am not sure what the proper name is for this.

Any ideas where to implement it/what it's called?

Thanks - Hal
7:15 pm on June 18, 2010 (gmt 0)

Administrator

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
posts:864
votes: 3


Sounds like the standard Login setup. If it detects you are not logged in. It will redirect you to the login page, and set the return url to the page you left. Once you are successfully logged in, it redirects you back to the return url path, which is were you started.

Reference:
FormsAuthentication.RedirectFromLoginPage Method (String, Boolean) [msdn.microsoft.com]
Redirects an authenticated user back to the originally requested URL or the default URL.
12:15 pm on June 21, 2010 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 24, 2005
posts:429
votes: 0


Thanks! I'll review.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members