Welcome Guest, Not a member yet? Register   Sign In
Expire Session When Not Active
#4

(This post was last modified: 04-29-2017, 04:08 AM by arisroyo. Edit Reason: words )

Thanks to both of you that helps a lot.

The logic is if user is keep using the web application the session must continue and if inactive for 15 minutes for the session should be expired even without closing the browser.

So I combine PHP.ini session configuration with CI session configuration

PHP.ini Session Configuration

session.gc_maxlifetime = 900 (15 minutes)

CodeIgniter Configuration

$config['sess_expiration'] = 900; (15 Minutes)
$config['sess_time_to_update'] = 450; (7 half minutes for update)
There are those who tell lies with meaning behind them and those meaning less lies!
Reply


Messages In This Thread
Expire Session When Not Active - by arisroyo - 04-28-2017, 04:50 AM
RE: Expire Session When Not Active - by InsiteFX - 04-28-2017, 08:00 AM
RE: Expire Session When Not Active - by muuucho - 04-28-2017, 02:30 PM
RE: Expire Session When Not Active - by arisroyo - 04-29-2017, 04:07 AM
RE: Expire Session When Not Active - by InsiteFX - 04-29-2017, 04:42 AM
RE: Expire Session When Not Active - by muuucho - 04-29-2017, 02:40 PM
RE: Expire Session When Not Active - by skunkbad - 04-29-2017, 02:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB