Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Posted

Never mind - I figured it out by using:

FormsAuthentication.SignOut()

User hits the back button and it takes them back to the login page

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...