mirror of
https://github.com/friendica/friendica
synced 2025-04-28 12:24:23 +02:00
Add Session::clear method
- Replace manual session clear by method in mod/manage
This commit is contained in:
parent
4a5dfefacc
commit
e5fbaf6a00
2 changed files with 11 additions and 18 deletions
|
@ -99,6 +99,14 @@ class Session
|
|||
unset($_SESSION[$name]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the current session array
|
||||
*/
|
||||
public static function clear()
|
||||
{
|
||||
$_SESSION = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Sets the provided user's authenticated session
|
||||
*
|
||||
|
@ -107,6 +115,7 @@ class Session
|
|||
* @param bool $login_initial
|
||||
* @param bool $interactive
|
||||
* @param bool $login_refresh
|
||||
* @throws \Friendica\Network\HTTPException\ForbiddenException
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public static function setAuthenticatedForUser(App $a, array $user_record, $login_initial = false, $interactive = false, $login_refresh = false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue