CodeIgniter Forums
Dynamic sessionExpiration - 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: Dynamic sessionExpiration (/showthread.php?tid=82907)



Dynamic sessionExpiration - Leuter66 - 09-02-2022

Hello. I am working on a new CI4 app with private user access. I would like the user to be able to decide to keep the session open at the time of login.
It works fine if I manually modify the $sessionExpiration variable in the Config\App.php file but I need to do it dynamically, for example from a session variable.
Could anyone help me? Thank you very much!