- Oct 19, 2000
- 17,860
- 4
- 81
I'm wanting the ability to overwrite a pre-existing cookie with completely different data and leave the expiry date. Is this possible?
Originally posted by: Train
could you just read the current cookie (data and expiry)
then overwrite it (new data + copied expiry)
seems like it should work?
Originally posted by: clamum
What are you using to interact with the cookie? Scripting language, I mean. I know in ASP.NET you can get/set a cookie's data without changing its ExpirationDate property.
From what I have read the expiration date is not sent from the browser to the server, only the name/value pairs. Most of the workarounds I saw were to put the expiration date into another cookie.Originally posted by: blurredvision
Now that the long weekend is over and I'm back to work, I'd like to see if I can figure this out. Anybody know how to copy the expiry date from cookies in PHP?