|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Cookie Question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|