forms authentication - Which is the best way to implement a logoff button in Asp.Net -


which best way implement logoff button in asp.net?

i using forms authentication.

thanks

i use forms auth:

private void lbsignoff_click(object sender, eventargs e) {     profile profile = session["profile"] profile;     logger.loginfomessage("logging off user: " + profile.username);      session.abandon();     formsauthentication.signout();     response.redirect(constants.defaultpage); } 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -