public function save()
{
if (!$this->dirty) {
// session hasn't changed, don't bother saving it
return;
}
$this->dirty = false;
$this->callback_registered = false;
$sh = SimpleSAML_SessionHandler::getSessionHandler();
try {
$sh->saveSession($this);
} catch (Exception $e) {
if (!$e instanceof SimpleSAML_Error_Exception) {
$e = new SimpleSAML_Error_UnserializableException($e);
}
SimpleSAML\Logger::error('Unable to save session.');
$e->logError();
}
}