Set a PHP Cookie to expire at midnight 
//You might find strtotime useful in these situations.

setcookie('cons', 1, strtotime('today 23:59'), '/');


http://stackoverflow.com/questions/1313 ... t-midnight

Comments
Comments are not available for this entry.
2024 By Angel Cool