The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> max-age attribute not working, How do you make a cookie expire?
jmrathbun
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Christian J
post Jun 30 2011, 05:30 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



That looks like a HTTP response, so I move the thread to the Web server configuration forum.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jmrathbun
post Jun 30 2011, 06:35 AM
Post #3


Newbie
*

Group: Members
Posts: 15
Joined: 8-June 11
Member No.: 14,726



QUOTE(Christian J @ Jun 30 2011, 06:30 AM) *

That looks like a HTTP response, so I move the thread to the Web server configuration forum.


Huh?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 29th March 2024 - 08:00 AM