protected void Page_Load(object sender, EventArgs e){
Session.Abandon();
FormsAuthentication.SignOut();
Page.Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Redirect("~/Admin/adminLogin.aspx");
}
I m not using any master page.so i have make one logout page and write code in it as above.
But after logout it still goes back to previous page.
You can put this code in the page load