A
Assimalyst
Hi,
I have a login/logout application, which works fine using sessions. But
when the user logs out, they can navigate back to the previous page
usng the back button, apparently a perculiar querk of the cache.
The following code should apparently rectify this
<%@ Response.Expires = 0 %>
<%@ Response.ExpiresAbsolute = Now() -1 %>
<%@ Response.AddHeader "pragma", "no-cache" %>
<%@ Response.AddHeader "cache-control", "private" %>
<%@ Response.CacheControl = "no-cache" %>
I have placed this directly after the following line
<%@ Page language="c#" CodeBehind="AddAssess.aspx.cs"
AutoEventWireup="false" Inherits="PDTdb.AddAssess" %>
but when I try to view the page i get the following error:
"Parser Error: The server block is not well formed"
and the first line <%@ Response.Expires = 0 %> is highlighted.
Any idea what the problem is?
Thanks.
I have a login/logout application, which works fine using sessions. But
when the user logs out, they can navigate back to the previous page
usng the back button, apparently a perculiar querk of the cache.
The following code should apparently rectify this
<%@ Response.Expires = 0 %>
<%@ Response.ExpiresAbsolute = Now() -1 %>
<%@ Response.AddHeader "pragma", "no-cache" %>
<%@ Response.AddHeader "cache-control", "private" %>
<%@ Response.CacheControl = "no-cache" %>
I have placed this directly after the following line
<%@ Page language="c#" CodeBehind="AddAssess.aspx.cs"
AutoEventWireup="false" Inherits="PDTdb.AddAssess" %>
but when I try to view the page i get the following error:
"Parser Error: The server block is not well formed"
and the first line <%@ Response.Expires = 0 %> is highlighted.
Any idea what the problem is?
Thanks.