Skip to content
Open
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions components/ILIAS/soap/classes/class.ilSoapAdministration.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ protected function initAuth(string $sid): void

session_id($sid);

ilInitialisation::reInitUser();

if (ilContext::getType() !== ilContext::CONTEXT_SOAP) {
ilInitialisation::reInitUser();
ilUtil::setCookie(session_name(), $sid);
}
}
Expand All @@ -162,7 +163,7 @@ protected function initIlias(): void
}
}
}

public function reInitUser(): void
{
if (ilContext::getType() === ilContext::CONTEXT_SOAP) {
Expand Down
4 changes: 3 additions & 1 deletion components/ILIAS/soap/resources/soap/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@

require_once 'vendor/composer/vendor/autoload.php';
require_once __DIR__ . '/../../artifacts/bootstrap_default.php';

ilContext::init(ilContext::CONTEXT_SOAP);

entry_point('ILIAS Legacy Initialisation Adapter');

// Initialize the error_reporting level, until it will be overwritte when ILIAS gets initialized
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

ilContext::init(ilContext::CONTEXT_SOAP);

$ilIliasIniFile = new ilIniFile('./ilias.ini.php');
$ilIliasIniFile->read();
Expand Down