api/login: add session_destroy

This commit is contained in:
Andrew Dolgov 2013-03-28 08:46:20 +04:00
parent f79bd4397f
commit 79bb55892b

View file

@ -47,6 +47,7 @@ class API extends Handler {
} }
function login() { function login() {
@session_destroy();
@session_start(); @session_start();
$login = db_escape_string($this->link, $_REQUEST["user"]); $login = db_escape_string($this->link, $_REQUEST["user"]);