H
H
Hazrat Hajikerimov2015-04-10 19:01:26
PHP
Hazrat Hajikerimov, 2015-04-10 19:01:26

How to calculate how many seconds left until the end of the day?

I need to set cookies for the current day, i.e. in the time argument for the setcookies function, I need to set the time until the end of the current day, how to calculate the end of the day?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2015-04-10
@hazratgs

Why do you need the number of seconds until the end of the day?
You just asked a very stupid question. Think about it and make up your own mind.
It is quite uncomplicated.

T
taurus90, 2015-04-10
@taurus90

the cookie will not be deleted, if anything, and if you tweak it on the client side, it will be sent as much as you like. The client drive is an unreliable place for restrictions. This is a word about confidence in this mechanism.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question