Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1670
  • Last Modified:

Set cookie expire time

How to i set in javascript a cookie that will expire at midnight, on 00:00 cookie will expire
0
rares_dumitrescu
Asked:
rares_dumitrescu
  • 5
  • 2
1 Solution
 
erikTsomikSystem Architect, CF programmer Commented:
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
 
rares_dumitrescuAuthor Commented:
01-Jan-70 ? This time is in the past ... will not set cookie at all
0
 
erikTsomikSystem Architect, CF programmer Commented:
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
rares_dumitrescuAuthor Commented:
Yeah, but i want to expire on midnight on same day ... And on my midnight:) i don`t know how to say ..
0
 
erikTsomikSystem Architect, CF programmer Commented:
will it once a month
0
 
erikTsomikSystem Architect, CF programmer Commented:
0
 
erikTsomikSystem Architect, CF programmer Commented:
Thank you . Was links helpfull?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now