4
protected void Page_Load(object sender, EventArgs e){
Session.Abandon();
FormsAuthentication.SignOut();
Page.Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Redirect("~/Admin/adminLogin.aspx");
}
我沒有使用任何母版頁。因此,我已經制作了一個註銷頁面並在其中編寫代碼。 但註銷後仍然回到上一頁。在asp.net中註銷後歷史記錄不清楚的問題
這隻會打開我的登出頁面而不會重定向到登錄頁面 – 2011-06-09 04:02:37