Skip to content

Commit

Permalink
tweak(TB Server) webdav/activesync to drop session at end of request
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmhh committed Oct 8, 2024
1 parent 012dd47 commit f5c156a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tine20/ActiveSync/Server/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ public function handle(\Laminas\Http\Request $request = null, $body = null)
Tinebase_Controller::getInstance()->logout();
} catch (Throwable $e) {
$this->_handleException($e);
} finally {
Tinebase_Session::destroyAndRemoveCookie();
}
}

Expand Down
2 changes: 2 additions & 0 deletions tine20/Tinebase/Server/WebDAV.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ public function handle(\Laminas\Http\Request $request = null, $body = null)
} catch (Throwable $e) {
Tinebase_Exception::log($e, false);
@header('HTTP/1.1 500 Internal Server Error');
} finally {
Tinebase_Session::destroyAndRemoveCookie();
}
}

Expand Down

0 comments on commit f5c156a

Please sign in to comment.