From 79bb55892baf86f05725053135f63d3e15cc99d0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 28 Mar 2013 08:46:20 +0400 Subject: [PATCH] api/login: add session_destroy --- classes/api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/api.php b/classes/api.php index cf8b2dcf..2b9c3a14 100644 --- a/classes/api.php +++ b/classes/api.php @@ -47,6 +47,7 @@ class API extends Handler { } function login() { + @session_destroy(); @session_start(); $login = db_escape_string($this->link, $_REQUEST["user"]); -- 2.39.5