Reloading of pages

T

tshad

I just created a page that checks logon credentials before it loads the
page.

The problem is that when I left the program and came back, it loaded the
page that was cached without doing the login check. As soon as I refreshed
the page, it did the logon check.

Is there a way at the top of my asp (asp.net and html) to tell it to refresh
certain pages, no matter what?

Thanks

Tom.
 
E

Evertjan.

tshad wrote on 17 nov 2004 in microsoft.public.inetserver.asp.general:
Is there a way at the top of my asp (asp.net and html) to tell it to
refresh certain pages, no matter what?

This NG is classic ASP only.
 
T

tshad

Evertjan. said:
tshad wrote on 17 nov 2004 in microsoft.public.inetserver.asp.general:


This NG is classic ASP only.

I understand that.

I am working with ASP at the moment and am looking at how to refresh the
page (which may be ASP code).

Tom
 
B

Bob Barrows [MVP]

tshad said:
I understand that.

I am working with ASP at the moment and am looking at how to refresh
the page (which may be ASP code).
Refreshing happens in the client - nothing to do with asp. See an html
newsgroup if you still need help after googling for information about the
META tag.

Bob Barrows
 
J

Jeff Cochran

I just created a page that checks logon credentials before it loads the
page.

The problem is that when I left the program and came back, it loaded the
page that was cached without doing the login check. As soon as I refreshed
the page, it did the logon check.

Is there a way at the top of my asp (asp.net and html) to tell it to refresh
certain pages, no matter what?

With IE clients you can use:

<% Response.AddHeader "Pragma", "No-Cache" %>

(See: http://support.microsoft.com/kb/165150/EN-US/)

Jeff
 
T

tshad

Jeff Cochran said:
With IE clients you can use:

<% Response.AddHeader "Pragma", "No-Cache" %>

Yes, but I want this to work with all clients. This page if cached, could
allow someone into my system by bypassing the logon section.

Thanks,

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top