Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

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 March 30th, 2004, 06:12 AM
amstel_za amstel_za is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 242 amstel_za User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 17 m 47 sec
Reputation Power: 5
Cookie Question

Hi all,

I've just created my own cookie...and read it back. But there is one thing that I don't know. If I set a cookie for my webpage, and then everytime the webpage is loaded, I check to see whether the cookie has expired (if it has a pop up "pops" up), how does the webpage know which cookie to look for? What happens if there are a few cookies for different reasons?

I'm just a little confused as to how cookies are accessed and how we know which cookie to access if there are multiple ones.

Reply With Quote
  #2  
Old March 30th, 2004, 07:55 PM
binky's Avatar
binky binky is offline
Gerbil
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2001
Location: In a Rotastak
Posts: 1,763 binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 22 h 12 m 52 sec
Reputation Power: 18
If you set a cookie called 'myCookie' with a value of '1' on the first time your page is visited by a user, then set 'myCookie' with a vlue of '2' the next time it is visited by that user... then the cookie is overwritten, it no longer holds the value '1' and you cannot find out any other values that 'myCookie' once had.

Essentially you cannot have two cookies named the same.
__________________
- Sorted!

www.ppfuk.com - Free Photo Sharing

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Cookie Question


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 4 hosted by Hostway