Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 16th, 2006, 06:12 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default Classic ASP caching problem with logins

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
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old March 16th, 2006, 07:54 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

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:
Code:
<%
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
 
Old March 16th, 2006, 09:07 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

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
 
Old March 16th, 2006, 09:15 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

according to MS:
http://support.microsoft.com/default...;EN-US;Q234067

Wind is your friend
Matt
 
Old December 8th, 2006, 08:45 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP classic Form to Email problem melkin Classic ASP Basics 0 April 19th, 2007 10:28 AM
ASP.Net Caching sohrabus ASP.NET 2.0 Professional 1 January 26th, 2007 11:29 AM
classic asp with asp.net on same iis bostonrose .NET Framework 2.0 6 January 10th, 2007 12:38 PM
increase caching size in Classic ASP page crmpicco Classic ASP XML 0 April 4th, 2006 11:28 AM
I have problem with Logins and forms denizci2000 Dreamweaver (all versions) 3 November 18th, 2004 01:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.