• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1660
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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