aboutsummaryrefslogtreecommitdiffstats
path: root/include/session.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/session.php')
-rw-r--r--include/session.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/session.php b/include/session.php
index cdf5afbb0..6072bdb33 100644
--- a/include/session.php
+++ b/include/session.php
@@ -7,6 +7,17 @@ $session_exists = 0;
$session_expire = 180000;
+
+
+function new_cookie($time) {
+ $old_sid = session_id();
+ session_set_cookie_params("$time");
+ session_regenerate_id(false);
+
+ q("UPDATE session SET sid = '%s' WHERE sid = '%s'", dbesc(session_id()), dbesc($old_sid));
+}
+
+
function ref_session_open ($s,$n) {
return true;
}