Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Is there a way ...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Deon
New Member

South Africa
79 Posts

Posted - 11 May 2002 :  10:42:38  Show Profile
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  Show Profile
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
Go to Top of Page

Deon
New Member

South Africa
79 Posts

Posted - 11 May 2002 :  14:16:31  Show Profile
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


Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 11 May 2002 :  14:27:37  Show Profile
in inc_top.asp add it at the very top right after the <% that is on line #1 of the file.
Go to Top of Page

Deon
New Member

South Africa
79 Posts

Posted - 11 May 2002 :  14:59:07  Show Profile
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



Go to Top of Page

Deon
New Member

South Africa
79 Posts

Posted - 11 May 2002 :  15:05:46  Show Profile
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
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 11 May 2002 :  15:40:41  Show Profile
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.
Go to Top of Page

Deon
New Member

South Africa
79 Posts

Posted - 11 May 2002 :  16:12:18  Show Profile
Thanx again, Richard!

I'll keep you posted on this topic.

Regards,
Deon


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.46 seconds. Powered By: Snitz Forums 2000 Version 3.4.07