0

I have session configuration as follows

'user' => [
            'identityClass' => 'common\models\LoginForm',
            'enableAutoLogin' => false,
            'loginUrl' => ['/login'],
            'identityCookie' => [
                'name' => '_OwnerUser', // unique for frontend
            ],
            'authTimeout' => 1800,
        ],
        'session' => [
            'name' => 'PHPOWNERSESSID',
            'savePath' => sys_get_temp_dir(),
            'timeout'=> 1800
        ],

What I want to do is keep user logged in for 3 days, I have gone through the SO. In which way I can implement this?

  1. Is it necessary to use cookies for storing session? if yes then how?
  2. I want to implement it in my existing project which is in production and I have not used cookie for login purpose
Nitin Pund
  • 1,082
  • 2
  • 9
  • 23

0 Answers0