mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
propperly update expire of cookie (do not take enableLargeFileUpload into account)
This commit is contained in:
parent
ee55fc6688
commit
8b2b2a12e2
|
@ -129,6 +129,5 @@ if (!$user->isAdmin()) {
|
||||||
/* Update cookie lifetime */
|
/* Update cookie lifetime */
|
||||||
if($settings->_cookieLifetime) {
|
if($settings->_cookieLifetime) {
|
||||||
$lifetime = time() + intval($settings->_cookieLifetime);
|
$lifetime = time() + intval($settings->_cookieLifetime);
|
||||||
/* Turn off http only cookies if jumploader is enabled */
|
setcookie("mydms_session", $dms_session, $lifetime, $settings->_httpRoot, null, false, true);
|
||||||
setcookie("mydms_session", $dms_session, $lifetime, $settings->_httpRoot, null, null, !$settings->_enableLargeFileUpload);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user