Welcome Guest, Not a member yet? Register   Sign In
CI3: Will sess_expiration value end a session that is active?

(This post was last modified: 04-15-2020, 01:25 PM by usa_futbol.)

Can I use sess_expiration as an "inactive timeout" function?

If sess_expiration=100, and the end user refreshes the page once a second, will the session expire 100 seconds after it started? Or will it never end?

Also, if I set sess_expiration to a year, would that session last even as the user's browsers is closed & opened? I do not think so. I assume that it always expires on close, but I've read some confusing posts.


If you set it to 0 (zero) it will expire the session when the users web browser closes.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Theme © iAndrew 2016 - Forum software by © MyBB