Solved

Set cookie expire time

Posted on 2007-12-03
7
1,595 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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 500 total points
ID: 20398643
0
 
LVL 19

Expert Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now