diff options
author | redmatrix <git@macgirvin.com> | 2016-04-12 22:55:26 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-04-12 22:55:26 -0700 |
commit | 91cc36514306e827c126ceed6c17486c85f5544c (patch) | |
tree | bb763fc5e2bb5e3becbce685efc977acb63b5979 /Zotlabs/Web | |
parent | f4a27afee9c1dc12afd2a15adef9f33654fa5ddd (diff) | |
download | volse-hubzilla-91cc36514306e827c126ceed6c17486c85f5544c.tar.gz volse-hubzilla-91cc36514306e827c126ceed6c17486c85f5544c.tar.bz2 volse-hubzilla-91cc36514306e827c126ceed6c17486c85f5544c.zip |
reverse the logic of the jsenabled setting so that sessions without js are performance penalised instead of regular sessions.
Diffstat (limited to 'Zotlabs/Web')
-rw-r--r-- | Zotlabs/Web/Session.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Web/Session.php b/Zotlabs/Web/Session.php index 55536fdc7..f998df396 100644 --- a/Zotlabs/Web/Session.php +++ b/Zotlabs/Web/Session.php @@ -85,8 +85,8 @@ class Session { else logger('no session handler'); - if (x($_COOKIE, 'jsAvailable')) { - setcookie('jsAvailable', $_COOKIE['jsAvailable'], $newxtime); + if (x($_COOKIE, 'jsdisabled')) { + setcookie('jsdisabled', $_COOKIE['jsdisabled'], $newxtime); } setcookie(session_name(),session_id(),$newxtime); |