How to stop the execution and redirect to the login page. I tried FormsAuthentication.Signout
but seens it doesn't stop the execution and let the code continue.
Response.redirect to the login page
FormsAuthentication.SignOut();
Response.Redirect("URLToLoginPage");
You can use one of the following statements to terminate/keep the page execution.
Response.Redirect(URL,false) :- User is redirected to a second page and the current page on the server will keep processing.
AND
Response.Redirect(URL,true) :- User is redirected to a second page but the processing of the current page is aborted.
Regards.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.