Merge pull request #162 from following5/704-default-logdate

added expiration time for default log date cookie; updates #704
This commit is contained in:
following5 2015-05-27 23:38:54 +02:00
commit d5272d1e66

View File

@ -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);