mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-29 10:29:48 +02:00
Rename two methods for logout to highlight the better default version
This commit is contained in:
@@ -339,7 +339,7 @@ final class Auth extends UserManager {
|
||||
*
|
||||
* @throws AuthError if an internal problem occurred (do *not* catch)
|
||||
*/
|
||||
public function logOutButKeepSession() {
|
||||
public function logOut() {
|
||||
// if the user has been signed in
|
||||
if ($this->isLoggedIn()) {
|
||||
// get the user's ID
|
||||
@@ -534,8 +534,8 @@ final class Auth extends UserManager {
|
||||
*
|
||||
* @throws AuthError if an internal problem occurred (do *not* catch)
|
||||
*/
|
||||
public function logout() {
|
||||
$this->logOutButKeepSession();
|
||||
public function logOutAndDestroySession() {
|
||||
$this->logOut();
|
||||
$this->destroySession();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user