api/login: add session_destroy

This commit is contained in:
Andrew Dolgov 2013-03-28 08:46:20 +04:00
parent f79bd4397f
commit 79bb55892b
1 changed files with 1 additions and 0 deletions

View File

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