php - Laravel 4 session doesn't expire after lifetime limit -
i've set 'lifetime' => 10
in session config file, doesn't expire @ all.
in laravel 3 setting, after logging in, when limit of 10 minutes exceeded, session expires , user redirected login again.
in laravel 4 doesn't happen. after 10 minutes can refresh, , still session valid.
i'm testing both on same machine analogical settings... missing?
i've got it. problem config pair lifetime
, expire_on_close
.
if expire_on_close
set true, laravel 4 ignore lifetime
. had:
'lifetime' => 1, 'expire_on_close' => true,
and in case, session valid after 1 min - expire after closing browser. changed to:
'lifetime' => 1, 'expire_on_close' => false,
and session expiring after 1 min. no matter if browser closed or not - close enough i've wanted.
the reason why confused , haven't figured out earlier comments there unclear in matter , in laravel 3 worked differently...
Comments
Post a Comment