Jackalope\Lock\LockManager::logout PHP Method

logout() public method

The session logout needs to call this so we are able to release any session based locks that where created through this lock manager.
public logout ( )
    public function logout()
    {
        foreach ($this->locks as $path => $lock) {
            if ($lock->isSessionScoped() && $lock->isLockOwningSession()) {
                try {
                    $this->unlock($path);
                    // will tell the lock its no longer live
                } catch (\Exception $e) {
                    // ignore exceptions here, we don't care too much. would be nice to log though
                }
            }
        }
    }