Fixes issue where collaborative sessions would get deleted when checking for duplicate sessions.

This commit is contained in:
xevidos 2018-07-24 09:39:12 -04:00
parent d1edeb7ea7
commit e903608001
1 changed files with 3 additions and 2 deletions

View File

@ -112,8 +112,9 @@ class User
session_id( $session );
session_start();
//echo var_dump( $_SESSION ) . "\n\n";
if ( ( isset( $_SESSION["user"] ) && $_SESSION["user"] == $username ) || empty( $_SESSION ) ) {
$_SESSION['lang'] = $this->lang;
$_SESSION['theme'] = $this->theme;
if ( ( isset( $_SESSION["user"] ) && $_SESSION["user"] == $username && ( isset( $_SESSION['lang'] ) && isset( $_SESSION['theme'] ) ) ) || empty( $_SESSION ) ) {
session_unset();
session_destroy();