aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-12 19:53:07 -0800
committerredmatrix <git@macgirvin.com>2016-03-12 19:53:07 -0800
commitcc29e27acc04511b943c5dcab85b1ce215ac2e49 (patch)
tree4861ff715cec11a22e1c8e8b207b3a2460c714e0 /include/auth.php
parent70ad69d38c53f78d04d912495f63c6fb781f0550 (diff)
downloadvolse-hubzilla-cc29e27acc04511b943c5dcab85b1ce215ac2e49.tar.gz
volse-hubzilla-cc29e27acc04511b943c5dcab85b1ce215ac2e49.tar.bz2
volse-hubzilla-cc29e27acc04511b943c5dcab85b1ce215ac2e49.zip
issue #320 - regression, after removing channel attached to an authenticated session the session was not completely cleared.
Diffstat (limited to 'include/auth.php')
-rw-r--r--include/auth.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/include/auth.php b/include/auth.php
index 4f0c4c928..1a7110c20 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -12,33 +12,6 @@
require_once('include/api_auth.php');
require_once('include/security.php');
-/**
- * @brief Resets the current session.
- *
- * @return void
- */
-function nuke_session() {
- new_cookie(0); // 0 means delete on browser exit
-
- unset($_SESSION['authenticated']);
- unset($_SESSION['account_id']);
- unset($_SESSION['uid']);
- unset($_SESSION['visitor_id']);
- unset($_SESSION['administrator']);
- unset($_SESSION['cid']);
- unset($_SESSION['theme']);
- unset($_SESSION['mobile_theme']);
- unset($_SESSION['show_mobile']);
- unset($_SESSION['page_flags']);
- unset($_SESSION['delegate']);
- unset($_SESSION['delegate_channel']);
- unset($_SESSION['my_url']);
- unset($_SESSION['my_address']);
- unset($_SESSION['addr']);
- unset($_SESSION['return_url']);
- unset($_SESSION['remote_service_class']);
- unset($_SESSION['remote_hub']);
-}
/**
* @brief Verify login credentials.