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

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -