登出代码

private void btnLogout_Click(object sender, System.EventArgs e)
        
{
            
// Remove the authentication ticket
            System.Web.Security.FormsAuthentication.SignOut();

            
// Redirect the user to the root application path
            Server.Transfer(Request.ApplicationPath);
        }

posted @ 2005-06-11 13:39  虚空境界  Views(452)  Comments(0Edit  收藏  举报