Doubt about IC Sessions

2

According to:

$config['sess_expiration'] = 7200;

The session will be destroyed after 7200 seconds, however I was wondering if when I refresh the page or access another page of my system, is this time renewed? If not, is there any configuration in the CI config that does this?

$config['sess_time_to_update'] = 300;

'sess_time_to_update'
|
|   How many seconds between CI regenerating the session ID.

What would this regeneration / renewal of the session id?

    
asked by anonymous 28.09.2016 / 21:33

1 answer

1
  

The session will be destroyed after 7200 seconds, however I wanted to   know when I update the page or access another page of my   system, is this time renewed?   If not, is there any configuration in the IC config that does this?   What would this regeneration / renewal of the session id?

There is a correlation in the two questions where $config['sess_time_to_update'] means the frequency of the session update, and every 5 minutes this occurs ( default setting ), generating a new ID section of the session and resetting the session expiration expiration setting based on the $config['sess_expiration'] key.

Usually we configure it differently:

$config['sess_expiration']  = 0;
$config['sess_expire_on_close'] = TRUE;

where 'sess_expiration' is configured with 0 and 'sess_expire_on_close' with the TRUE value, meaning that the session is only destroyed when the user closes browser or via coding with user intervention, I particularly do so and never had problems.

Link:

28.09.2016 / 22:50