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
Post a Comment