Author |
Topic |
|
Deon
New Member
South Africa
79 Posts |
Posted - 11 May 2002 : 10:42:38
|
to put some code in say, inc_top.asp to make sure that the most recent info on every page is loaded - something that does the same as Ctrl-R for instance.
I put a question to this forum some time ago about the fact that I logged out successfully, but when the Home Page of the forum is displayed after I have received the Loged out Successfully message, I still show as to be loged in.
I got a reply from someone that my ISP is most likely using something like gzip for http - I asked my ISP and they said that they don;t use any compression whatsoever.
Well, as you can imagine, I have to refresh almost every time.
Your help will be much appreciated.
Regards, Deon
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 11 May 2002 : 12:54:56
|
you can try using this:
response.buffer = TRUE response.expires = -1 response.cachecontrol = "private" response.addheader "pragma","no-cache" response.addheader "cache-control","no-store"
more info can be found here: http://www.google.com/search?q=pragma+no-cache&hl=en |
|
|
Deon
New Member
South Africa
79 Posts |
Posted - 11 May 2002 : 14:16:31
|
Hi Richard, thanx for the code ... only thing is now that it shows on top of every page.
This is how I put it in: <style type=text/css> <!-- a:link {color:<% =strLinkColor %>;text-decoration:<% =strLinkTextDecoration %>} a:visited {color:<% =strVisitedLinkColor %>;text-decoration:<% =strVisitedTextDecoration %>} a:hover {color:<% =strHoverFontColor %>;text-decoration:<% =strHoverTextDecoration %>} input.radio {background: <% = strPopUpTableColor %>; color:#000000} --> </style> response.buffer = TRUE response.expires = -1 response.cachecontrol = "private" response.addheader "pragma","no-cache" response.addheader "cache-control","no-store"
</head>
Where did I go wrong? Thanx again for your patience with me!
Deon
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 11 May 2002 : 14:27:37
|
in inc_top.asp add it at the very top right after the <% that is on line #1 of the file. |
|
|
Deon
New Member
South Africa
79 Posts |
Posted - 11 May 2002 : 14:59:07
|
thanx Richard,
I've made the changes and will test it. (I have deleted all the cookies on my PC and will now go for the proof of the pooding.)
Keep well! Deon
|
|
|
Deon
New Member
South Africa
79 Posts |
Posted - 11 May 2002 : 15:05:46
|
Hi Richard, hope I do not disappoint you, but it didn't help, especially not on the Admin Section. Do you think I can add this bit of code in every inc_**.asp file as well as the admin_**_**.asp files?
Regards, Deon
Edited by - Deon on 11 May 2002 15:10:03 |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 11 May 2002 : 15:40:41
|
Yes, instead of putting it in the inc_top.asp file, try putting it in each of the main .asp files (such as default.asp, forum.asp, topic.asp, admin_xxx_xxx.asp, etc...)
Same thing as I said above, put it at the very top of the file. |
|
|
Deon
New Member
South Africa
79 Posts |
Posted - 11 May 2002 : 16:12:18
|
Thanx again, Richard!
I'll keep you posted on this topic.
Regards, Deon
|
|
|
|
Topic |
|