1

How to auto logout session after some inactive? I want this functionality in zend framework 3.If anyone have idea then let me inform please.Currently my application logout within 5 minutes with the used of zend skeleton.But I want session expiration time atleast 30 minutes.

Please provide solution for above.

Ohm
  • 171
  • 1
  • 1
  • 10

1 Answers1

0

Just add this session configuration in your module.config.php, and make sure Zend\Session has been added in config/modules.config.php

use Zend\Session\Storage\SessionArrayStorage;

return [
    // your existing config 

    'session_config' => [
        'cookie_lifetime' => 60 * 30
    ],
    'session_storage' => [
        'type' => SessionArrayStorage::class
    ],
];
Dolly Aswin
  • 2,684
  • 1
  • 20
  • 23
  • Thanks Dolly Aswin. But using above solutions,I had already try.Please refer https://stackoverflow.com/questions/44801013/zf3-session-timeout-issue – Ohm Jul 03 '17 at 06:31