Skip to content
Permalink
Browse files

added expiration time for default log date cookie; updates #704

  • Loading branch information...
following5 committed May 24, 2015
1 parent 89d4645 commit 96fd24d761ff7bc0e847d37c3d30c30b4de34cc3
Showing with 3 additions and 1 deletion.
  1. +3 −1 htdocs/log.php
@@ -155,7 +155,9 @@
// store valid date in temporary cookie; it will be the default for the next log
if ($validate['dateOk'])
setcookie('oclogdate', sprintf('%04d%02d%02d',$logDateYear, $logDateMonth, $logDateDay));
setcookie('oclogdate',
sprintf('%04d%02d%02d',$logDateYear, $logDateMonth, $logDateDay),
time() + 12*60*60); // expiration time
// check log type
$validate['logType'] = $cache->logTypeAllowed($logType);

0 comments on commit 96fd24d

Please sign in to comment.
You can’t perform that action at this time.