1
0
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:
Marco
2017-10-19 20:25:11 +02:00
parent ce8dbbc436
commit 71506eaa05
4 changed files with 15 additions and 13 deletions

View File

@@ -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();
}