How to set session expire on close - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: How to set session expire on close (/showthread.php?tid=73286) |
How to set session expire on close - sabbahz - 04-08-2019 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! RE: How to set session expire on close - InsiteFX - 04-08-2019 PHP Code: $sessionExpiration = 0; RE: How to set session expire on close - sabbahz - 04-08-2019 (04-08-2019, 03:13 AM)InsiteFX Wrote: it's also written in the comment above, I've to pay more attention next time... Thank you! |