One Easy Step to Clear Browser Session In

ASP.NET is an open-source server-side web application framework designed for web development to produce dynamic web pages developed by Microsoft to allow programmers to build dynamic web sites, applications and services.

In this post, I will show how to clear Browser history in write down following code in Log out button.

protected void LogOut()
       string nextpage = "Logoutt.aspx";
       Response.Write("<script language=javascript>");

       Response.Write(" var Backlen=history.length;");

       Response.Write(" history.go(-Backlen);");
       Response.Write(" window.location.href='" + nextpage + "'; ");



Please do not post any spam link in the comment box😊

Post a Comment (0)
Previous Post Next Post