Zf3 Distroy Session after one hour

session

#1

Is there a way to destroy a session started after 1 hour? I made the next configs in the global.php, but the sessions are stil present after 20 seconds in the apache folder…

And the application stil uses that session…

return [
// Session configuration.
'session_config' => [
    // Session cookie will expire in 1 hour.
    'cookie_lifetime' => 20, 
    // Store session data on server maximum for 30 days.
    'gc_maxlifetime'  => 20,
],
// Session manager configuration.
'session_manager' => [
    // Session validators (used for security).
    'validators' => [
        RemoteAddr::class,
        HttpUserAgent::class,
    ]
],
// Session storage configuration.
'session_storage' => [
    'type' => SessionArrayStorage::class
],

// ...
];