• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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, 04: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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.