Solved

Set cookie expire time

Posted on 2007-12-03
7
1,622 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

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…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
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

626 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