1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
Daniel 2022-07-30 10:25:15 -03:00
parent 1cc484720e
commit 98b88ab3f8
3 changed files with 4 additions and 2 deletions

View file

@ -35,6 +35,8 @@ if(!isSameDomain($global['webSiteRootURL'], $_POST['redirectUri'])){
} }
_error_log("Start Login Request redirectUri=" . $_POST['redirectUri']); _error_log("Start Login Request redirectUri=" . $_POST['redirectUri']);
User::logoff();
use Hybridauth\Hybridauth; use Hybridauth\Hybridauth;
use Hybridauth\HttpClient; use Hybridauth\HttpClient;

View file

@ -12,7 +12,6 @@ if (!empty($advancedCustomUser->afterLogoffGoToMyChannel)) {
} else { } else {
$redirectUri = $global['webSiteRootURL']; $redirectUri = $global['webSiteRootURL'];
} }
_session_start();
User::logoff(); User::logoff();
Category::clearCacheCount(); Category::clearCacheCount();
header("location: {$redirectUri}"); header("location: {$redirectUri}");

View file

@ -1063,8 +1063,9 @@ if (typeof gtag !== \"function\") {
} }
public static function logoff() { public static function logoff() {
global $global, $justLogoff; global $global, $justLogoff, $isLogged;
$justLogoff = true; $justLogoff = true;
$isLogged = false;
_session_start(); _session_start();
ObjectYPT::deleteAllSessionCache(); ObjectYPT::deleteAllSessionCache();
_unsetcookie('rememberme'); _unsetcookie('rememberme');