How to Expire a Cookie at Midnight using PHP

One line of code:

setcookie(“CookieName”, “CookieValue”, mktime(23, 59, 59, date(“m”), date(“d”), date(“y”)));


A .NET, PHP, Marketing Guru authority, at least I hope I am. Reach me at

121 thoughts on “How to Expire a Cookie at Midnight using PHP

  1. I understand what you bring it very meaningful and useful, thanks.

  2. egregr says:

    It seems I’m on the right track, I hope I can do well. The result was something I did and was doing to implement it.

  3. html color says:

    Your article is detailed, thanks to it I solved the problem I am entangled. I will regularly follow your writers and visit this site daily.

  4. html color says:

    I regularly visit your site and find a lot of interesting information. Thank you and look forward to your page growing stronger.

  5. This is so nice. Many thanks!

  6. Thanks for the information you shared. Please share useful information with your friends regularly

  7. Great post!! very informative.
    Thank you very much for such a lovely and informative post.

  8. I have read your article, the information you give is very interesting.

  9. Run 3 says:

    I’m really impressed with your article, such great & usefull knowledge you mentioned here

  10. Kizi 2 says:

    the information is very nice and helpful to us, thank you for sharing..

  11. Very Useful Nad so Helpful Post Thanks for share

  12. Very helpful to me and I am sure to all the commentators here!

  13. Very amazing,I research Your Blog About Your Topic Very Excellent Post You Discuss With Us

  14. hooda games says:

    This is extremely helpful info!! Very good work. Everything is very interesting to learn and easy to understood. Thank you for giving information.


  15. Yepi Games says:

    Thank you for your contribution during the last time

  16. run 2 says:

    The article you have shared here very awesome. I really like and appreciated your work. I read deeply your article, the points you have mentioned in this article are useful
    run 2

  17. dsb says:

    I like to get up early to go out and breathe fresh air. I feel that it is good for health and a good habit
    Return Man 3

  18. Arcade Games says:

    For classic arcade game lovers… learn and play it now

  19. Yepi says:

    This is a great article. You will also like this because it is a great answer for many more reviews.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>