I have placed an include to "security.asp" at the top of each .asp page in the Members Area of my client's web site.
When the following code in "security.asp" is executed, the user is redirected to the "join.asp" page but the url in the browser address bar still shows the last page's url.
Is this the way it works?
Was there something I placed in my code that is doing this?
OR is there something else I need to add into my code?
security.asp
Thanks.<%
Response.Expires = 60 'expire at 60 seconds
Response.Expiresabsolute = Now() - 1 'expire this page 24 hours ago
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "private"
Response.Buffer = True 'Buffers the content so our Response.Redirect will work
'If the session variable if False or does not exist,
'then redirect the user to the web site Join DRIE page
If Session("blnIsMemberGood") = False or Len(Session("blnIsMemberGood") & "") = 0 Then
'Redirect to the web site Join DRIE page
Response.Redirect "/clients/drieottawa/new/join.asp"
End If
%>




Bookmarks