mirror of
https://github.com/xevidos/codiad.git
synced 2025-01-03 03:32:14 +01:00
Fixes issue where collaborative sessions would get deleted when checking for duplicate sessions.
This commit is contained in:
parent
d1edeb7ea7
commit
e903608001
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue