Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 15th, 2003, 11:43 AM
Humble Seeker Humble Seeker is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: London
Posts: 69 Humble Seeker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 54 sec
Reputation Power: 7
Angry Cookie won't die, it's a cache things I think

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.

Reply With Quote
  #2  
Old July 15th, 2003, 11:54 AM
Ctb's Avatar
Ctb Ctb is offline
An Ominous Coward
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jan 2002
Posts: 4,425 Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 10 h
Reputation Power: 0
First of all, JFK was only shot twice, so maybe you just haven't tried enough things. Second, you kill cookies by setting their "expires" attribute in the past. Third, don't you think this would be more appropriately posted in the ASP forum since it's a question stemming from that technology and not a general discussion topic?

Reply With Quote
  #3  
Old July 15th, 2003, 12:02 PM
Humble Seeker Humble Seeker is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: London
Posts: 69 Humble Seeker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 54 sec
Reputation Power: 7
I've tried killing the cookie a lot more times than twice, just that my history is very bad, I forgot he only got hit twice but shot at three times.

I posted it here as the technology involved is not so simple, as it involves servers, scripting, browsers, and HTTP standards. And I know how much peeps on here hate cross posting. But at your suggestion I will post in the asp, and say I was told to.

Reply With Quote
  #4  
Old July 15th, 2003, 12:03 PM
kid_christian90 kid_christian90 is offline
Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 6 kid_christian90 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 19 sec
Reputation Power: 0
go under ur harddrive letter usually known sa "C" drive go in there right click on the "windows" folder and hit delete

Reply With Quote
  #5  
Old July 15th, 2003, 12:07 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
to kid_christian90: he is talking about the server side.

to Humble Seeker: Please do not make a second post in the ASP forum. Write to a moderator (For the lounge thatīs JCaputo and SilkySmooth) to move the thread.

... IMO your problem is not the cookie. The cookie cannot be replicated among clients. Itīs your session management that is broken, it seems to use the same session for all users.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #6  
Old July 15th, 2003, 12:26 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Whatīs your point?

Reply With Quote
  #7  
Old July 15th, 2003, 12:47 PM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 6 m 22 sec
Reputation Power: 76
He's only posted one actual question, everything else has been saying "delete all your files" or other nonsense. *cough*ban*cough*

Reply With Quote
  #8  
Old July 15th, 2003, 01:18 PM
Humble Seeker Humble Seeker is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: London
Posts: 69 Humble Seeker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 54 sec
Reputation Power: 7
Thanks Hirsch for the info, I'll look into the sessions management on the server.

Thanks for telling me about asking the moderator unfortunetly I've already posted to the asp forum.

And to the brat kid_christian90 you can't delete the windows directly, well not by simply going to c:\window.

Reply With Quote
  #9  
Old July 15th, 2003, 05:16 PM
dog135's Avatar
dog135 dog135 is offline
Doggie
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: Seattle, WA
Posts: 751 dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level)dog135 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 10 h 38 m 25 sec
Reputation Power: 7
It's possible your IDs are being reused and causing the problems.

Old orders being brought back up:
Try giving a timestamp to each ID in the database and erase ones that have expired. A good time to do that would be when a new ID is requested.

Other customer's orders getting mixed up:
Make sure the ID you generate isn't already being used by another session. Simply picking a random number doesn't guarentee a unique ID.

Other problems:
If your IDs are generated sequentially, it's possible that two different processes may generate the same ID at the same time. Depending on your code, you may want to mark each ID with the process ID or some other marker, then reverify it afterwards to make sure that only that process is using that ID.

Last edited by dog135 : July 15th, 2003 at 05:20 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > Cookie won't die, it's a cache things I think


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway