Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Set cookie expire time

Posted on 2007-12-03
7
Medium Priority
?
1,645 Views
Last Modified: 2008-02-01
How to i set in javascript a cookie that will expire at midnight, on 00:00 cookie will expire
0
Comment
Question by:rares_dumitrescu
  • 5
  • 2
7 Comments
 
LVL 19

Expert Comment

by:erikTsomik
ID: 20398486
add to the place where you setting the cookie this
expires=Thu, 01-Jan-70 00:00:01 GMT;';
This will expire your cookie at midnight
0
 

Author Comment

by:rares_dumitrescu
ID: 20398529
01-Jan-70 ? This time is in the past ... will not set cookie at all
0
 
LVL 19

Expert Comment

by:erikTsomik
ID: 20398551
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:rares_dumitrescu
ID: 20398583
Yeah, but i want to expire on midnight on same day ... And on my midnight:) i don`t know how to say ..
0
 
LVL 19

Expert Comment

by:erikTsomik
ID: 20398608
will it once a month
0
 
LVL 19

Accepted Solution

by:
erikTsomik earned 1000 total points
ID: 20398643
0
 
LVL 19

Expert Comment

by:erikTsomik
ID: 20398770
Thank you . Was links helpfull?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question