Using this method after the SignOut() call redirects to ‘…login.aspx?ReturnUrl=%2fmydomainname%2flogout.aspx’ so that the user can’t log back in again, since a successful login returns to the logout page. The login page is set in webconfig and the app successfully gets that page. Why would a ReturnURL be stuck on the tail of the URL?
Using this method after the SignOut() call redirects to ‘…login.aspx?ReturnUrl=%2fmydomainname%2flogout.aspx’ so that the user
Share
This is how
RedirectFromLoginPageworks. It appends the current URL to the query string of the login page. This way, the login page can redirect the user back to the place he where.If you don’t want this to happen, you can manually redirect to the login page using
Response.Redirect.