Partial Class login_LogOut Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Session.Abandon() FormsAuthentication.SignOut() Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.Cache.SetExpires(DateTime.UtcNow.AddHours(-1)) Response.Cache.SetNoStore() End Sub End Class