Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update Internal.php
I have an error in the nextcloud.log after log out every time. 

session_start(): A session had already been started - ignoring at /home/mydomain/public/lib/private/Session/Internal.php#208
  • Loading branch information
MasahikoSada authored Sep 2, 2021
commit d8376c593ea4f01c3cc60d92d24b9495dd292fb2
4 changes: 3 additions & 1 deletion lib/private/Session/Internal.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ public function remove(string $key) {
public function clear() {
$this->invoke('session_unset');
$this->regenerateId();
$this->startSession(true);
if(!isset($_SESSION)){
$this->startSession(true);
}
$_SESSION = [];
}

Expand Down