Welcome Guest, Not a member yet? Register   Sign In
Expiring the session when the browser is closed
#3

(This post was last modified: 01-07-2021, 11:09 PM by iot.)

(01-07-2021, 10:00 PM)InsiteFX Wrote: PHP - Session destroy after closing browser

I want my system works as: an user will not be logged out until the browser is closed. If the browser is not closed, the user is kept logged in

In previous CI version (CI 3), with the config: $config['sess_expiration'] = 0;. It works as expected.

Now, when I upgrade the system to CI4. I use $sessionExpiration = 0;, but it does not worked as expected. User is automallicaly logged out after a few minutes.

Could you please tell me a solution for it?
Reply


Messages In This Thread
RE: Expiring the session when the browser is closed - by iot - 01-07-2021, 11:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB