$session->__destruct() Ensures that all pending changes are written to disk before the object is destructed kirby/src/Session/Session.php#L501 $session->__destruct(): void Parent class Kirby\Session\Session