From 5e83c58a95b0d38eee295476f0d7bb04fb6b60da Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 23 May 2013 20:35:40 -0700 Subject: move new_cookie() to the session driver so we can use it for other purposes besides "normal" web login (for instance magic auth) --- include/auth.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'include/auth.php') 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)); -} - -- cgit v1.2.3