Yes is no and no is yes ...
This commit is contained in:
parent
61956e1098
commit
5b94c4fe41
1 changed files with 2 additions and 2 deletions
|
@ -209,12 +209,12 @@ else {
|
||||||
}
|
}
|
||||||
|
|
||||||
function new_cookie($time) {
|
function new_cookie($time) {
|
||||||
if (get_config('system', 'disable_database_session'))
|
if (!get_config('system', 'disable_database_session'))
|
||||||
$old_sid = session_id();
|
$old_sid = session_id();
|
||||||
|
|
||||||
session_set_cookie_params($time);
|
session_set_cookie_params($time);
|
||||||
|
|
||||||
if (get_config('system', 'disable_database_session')) {
|
if (!get_config('system', 'disable_database_session')) {
|
||||||
session_regenerate_id(false);
|
session_regenerate_id(false);
|
||||||
q("UPDATE session SET sid = '%s' WHERE sid = '%s'", dbesc(session_id()), dbesc($old_sid));
|
q("UPDATE session SET sid = '%s' WHERE sid = '%s'", dbesc(session_id()), dbesc($old_sid));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue