Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

How to logout user in ASP.NET Membership provider - ver2

$
0
0

I found a post regarding Login out of ASP.NET Membership provider from 2010 and the accepted suggestions where

FormsAuthentication.SignOut()

Response.Redirect(FormsAuthentication.LoginUrl)

or

FormsAuthentication.SignOut()

FormsAuthentication.RedirectToLoginPage()

both will create similar results but I would actually suggest to take the Response.Redirect option with the EndResponse flag set to True to terminate processing of the page immediately.  otherwise the execution will continue and then you will be redirected.

the original link was http://forums.asp.net/post/2715277.aspx

Enjoy!


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>