src/Http/EventListener/RefreshSessionRegistryLastUsedListener.php
public function onKernelTerminate(PostResponseEvent $event)
    {
        if (!$event->getRequest()->hasSession()) {
            return;
        }

        $session = $event->getRequest()->getSession();

        $this->registry->refreshLastUsed($session->getId(), $session->getMetadataBag()->getLastUsed());
    }
public function onKernelTerminate(PostResponseEvent $event)
    {
        if (!$event->getRequest()->hasSession()) {
            return;
        }

        $session = $event->getRequest()->getSession();

        $this->registry->refreshLastUsed($session->getId(), $session->getMetadataBag()->getLastUsed());
    }
public function onKernelTerminate ( PostResponseEvent $ event ) { if ( ! $ event -> getRequest ( ) -> hasSession ( ) ) { return ; } $ session = $ event -> getRequest ( ) -> getSession ( ) ; $ this -> registry -> refreshLastUsed ( $ session -> getId ( ) , $ session -> getMetadataBag ( ) -> getLastUsed ( ) ) ; }
Refresh the last used timestamp for the given session if registered.

@param PostResponseEvent $event
Refresh the last used timestamp for the given session if registered .