Welcome Guest, Not a member yet? Register   Sign In
How to set session expire on close
#1

Hello eveybody,


do you know how to set:


$config['sess_expire_on_close'] = TRUE;


in version 4? My app\Config\App.php is:


public $sessionDriver            = 'CodeIgniter\Session\Handlers\FileHandler';
public $sessionCookieName        = 'ci_session';
public $sessionExpiration        = 7200;
public $sessionSavePath          = WRITEPATH . 'session';
public $sessionMatchIP           = false;
public $sessionTimeToUpdate      = 300;
public $sessionRegenerateDestroy = false;

and if I close the browser (not a single Tab, the browser) and then reopen it my old sessions are still there.

Thank you!
Reply
#2

PHP Code:
$sessionExpiration 0
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(04-08-2019, 03:13 AM)InsiteFX Wrote:
PHP Code:
$sessionExpiration 0

it's also written in the comment above, I've to pay more attention next time...

Thank you!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB