|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
I've got a problem with a web site that caches a cookie centrally, causing users of my simple e-commerce site to get wrong shopping baskets. Any ideas why this might be happening
Details --------- I've got a simple ASP/ SQL Server 2000 web site sitting on a third party host. The site is a very basic b2b web site taking order for materials. I use a cookie to hold the basket number, the basket is in the database. The problem I'm having is that some of the users are getting old orders or orders that have been placed by someone else in their company. The few HTML pages that are on the site are also being heavily cached, and not updated. I've set everything I can think of to not cache and killed the cookie more times than JFK was shot, and still the problem persists. As you can tell I think the problem is cookie based but I've never heard of a cookie being cached centrally. Has anyone else experianced this problem? Please not (pride talking) I didn't build this cursed site, I've just been asked to keep it moving. Any help is greatly appreciated. Would the fact that part of the site from an intranet rather than directly from the internet. FYI: I am unable to post any code for this problem. I'm just wondering if anyone else has experianced it, and if you've found a solution.
__________________
Humble Seeker The longest journey starts with the smallest step, and knowledge is the longest journey of all. |
|
#2
|
||||
|
||||
|
Hi,
To clear cached pages in asp add these lines to the to of the asp file. Code:
Response.ExpiresAbsolute = #1/1/1980# Response.AddHeader "cache-control", "no-store, must-revalidate, private" Response.AddHeader "Pragma", "no-cache" Response.Buffer = True This should always force the page to be re-loaded and not use a cache copy. I`m not sure about your cookie problem.. give this a go though. Kong. |
|
#3
|
|||
|
|||
|
IP addresses hadn't thought of that. I agree a very naive programmer coded the problem site up. Unfortunetly he's currently the senior programmer for the company I work for. I'm just the muggings who has to try and fix the problems he made.
I can't post the code at the moment because it goes against company policy. I'll try and create a sanatised version which implements what I've done to do to date. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Cookie won't die, it's a cache things I think |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|