aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-23 20:35:40 -0700
committerfriendica <info@friendica.com>2013-05-23 20:35:40 -0700
commit5e83c58a95b0d38eee295476f0d7bb04fb6b60da (patch)
tree18a58e1aa42679b2bbe989e8d3c14aa2fe9e201c /include/auth.php
parent6a2e644a87957821021f1b748448a72a38ef642b (diff)
downloadvolse-hubzilla-5e83c58a95b0d38eee295476f0d7bb04fb6b60da.tar.gz
volse-hubzilla-5e83c58a95b0d38eee295476f0d7bb04fb6b60da.tar.bz2
volse-hubzilla-5e83c58a95b0d38eee295476f0d7bb04fb6b60da.zip
move new_cookie() to the session driver so we can use it for other purposes besides "normal" web login (for instance magic auth)
Diffstat (limited to 'include/auth.php')
-rw-r--r--include/auth.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/auth.php b/include/auth.php
index 59145df83..fc13725be 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -198,13 +198,3 @@ else {
authenticate_success($record, true, true);
}
}
-
-
-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));
-}
-