|
Subject:
|
Classic ASP caching problem with logins
|
|
Posted By:
|
crmpicco
|
Post Date:
|
3/16/2006 5:12:28 AM
|
I have an Classic ASP site, with a login situation.
However, when I timeout it redirects back to the login page - which is fine!
But, when i then enter a CORRECT password and username is doesnt allow me in. I've checked case sensitivity.
When i close the browser and open a new one it lets me in?
Is this a caching problem?
How can it be fixed?
Picco
www.crmpicco.co.uk
|
|
Reply By:
|
crmpicco
|
Reply Date:
|
3/16/2006 6:54:01 AM
|
to put it another way, what are the best ways to prevent my ASP page from being cached? I have this ATM, at the top of my page:
<%
Response.Expires = 0
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
%>
Is that sufficient?
www.crmpicco.co.uk
|
|
Reply By:
|
mat41
|
Reply Date:
|
3/16/2006 8:07:49 PM
|
Not sure but I dont have these problems with:
Response.Buffer = True Response.CacheControl = "No-cache" Response.Expires = 0
However another site I seem to have(which is also trouble free)
<% Response.CacheControl = "no-cache" %> <% Response.AddHeader "Pragma", "no-cache" %> <% Response.Expires = -1 %>
Wind is your friend Matt
|
|
Reply By:
|
mat41
|
Reply Date:
|
3/16/2006 8:15:41 PM
|
according to MS: http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q234067
Wind is your friend Matt
|
|
Reply By:
|
crmpicco
|
Reply Date:
|
12/8/2006 7:45:20 AM
|
i never got a solution to this problem, however one time when someone outwith the office i was working in at the time accessed the server (HTTP) it seem to cure the problem??? don't understand it, but there you go :-/
www.crmpicco.co.uk www.ie7.com
|