max-age attribute not working, How do you make a cookie expire? |
max-age attribute not working, How do you make a cookie expire? |
jmrathbun |
Jun 29 2011, 09:02 PM
Post
#1
|
Newbie Group: Members Posts: 15 Joined: 8-June 11 Member No.: 14,726 |
I'm trying to set a cookie that will expire in 24 hours. I've tried
CODE Set-Cookie: score=10; path=/; expires=time()+86400 and I've tried CODE Set-Cookie: score=10; path=/; max-age=86400 both on Unix and on Windows servers, but in every case I get a session cookie only. What's wrong? |
Darin McGrew |
Jun 30 2011, 12:12 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
QUOTE this code goes at the top of the html document No, that is incorrect. That code might go at the top of a Perl CGI program that generates an HTML document, but it does not go at the top of a plain HTML document. |
Lo-Fi Version | Time is now: 23rd April 2024 - 02:01 AM |