lorena Posted May 18, 2005 Posted May 18, 2005 Isn't is true that if an aspx page's OutputCache location="None", it expires immediately? If the user hits the back button on the browser, the page should not be there, right? Here is my code: <%@OutputCache Location="None"%> <%@ Page Language="vb" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <title>Current Suppliers</title> <meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0"> <meta name="CODE_LANGUAGE" content="Visual Basic 7.0"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> <script runat="server"> Sub btnLogout_OnClick(Sender As Object, E As EventArgs) Response.Redirect ("http://internet.talleyds.com") End Sub </script> </HEAD> <body MS_POSITIONING="GridLayout"> <form id="Form1" method="post" runat="server"> <asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 98px; POSITION: absolute; TOP: 59px" runat="server" Width="144px">Hi!</asp:Label> <asp:Button id="btnLogout" style="Z-INDEX: 102; LEFT: 237px; POSITION: absolute; TOP: 146px" runat="server" OnClick="btnLogout_OnClick" Text="Logout"></asp:Button> </form> </body> </HTML> Have I missed something? Quote
lorena Posted May 19, 2005 Author Posted May 19, 2005 Never mind - I figured it out by using: FormsAuthentication.SignOut() User hits the back button and it takes them back to the login page Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.