api/login: add session_destroy
This commit is contained in:
parent
f79bd4397f
commit
79bb55892b
|
@ -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 New Issue