api/login: add session_destroy
This commit is contained in:
parent
f79bd4397f
commit
79bb55892b
1 changed files with 1 additions and 0 deletions
|
@ -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"]);
|
||||||
|
|
Loading…
Reference in a new issue