aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2014-01-17 23:32:03 +0000
committerThomas Willingham <founder@kakste.com>2014-01-17 23:32:03 +0000
commit2e83b78d700edc6419b5b23089ca064af46952dd (patch)
tree002f0e56ccce30e5bf26c9cef3d20d409a497c25 /include
parenta59b7c97f45d0c17e925284a42e2610d734f1a24 (diff)
parentc7585e4e584909b78a92f83a3cd9e0a74204a257 (diff)
downloadvolse-hubzilla-2e83b78d700edc6419b5b23089ca064af46952dd.tar.gz
volse-hubzilla-2e83b78d700edc6419b5b23089ca064af46952dd.tar.bz2
volse-hubzilla-2e83b78d700edc6419b5b23089ca064af46952dd.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'include')
-rw-r--r--include/session.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/session.php b/include/session.php
index 6072bdb33..be1ec5ee7 100644
--- a/include/session.php
+++ b/include/session.php
@@ -15,6 +15,15 @@ function new_cookie($time) {
session_regenerate_id(false);
q("UPDATE session SET sid = '%s' WHERE sid = '%s'", dbesc(session_id()), dbesc($old_sid));
+
+ if (x($_COOKIE, 'jsAvailable')) {
+ if ($time) {
+ $expires = time() + $time;
+ } else {
+ $expires = 0;
+ }
+ setcookie('jsAvailable', $_COOKIE['jsAvailable'], $expires);
+ }
}