Doubt about Sessions in the IC

Asked

Viewed 185 times

2

According to :

$config['sess_expiration'] = 7200;

The session will be destroyed after 7200 seconds, however I wanted to know if when I update the page or access another page of my system, that time is renewed ? If not, is there any configuration in the IC 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 be this regeneration/renewal of the Session id ?

1 answer

1


The session will be destroyed after 7200 seconds, however I wanted whether when I update the page or access another page of my system, this time is renewed? If not, is there any configuration in the IC config that does this ? What would be 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 session and reset the session expiration expiration setting based on the key $config['sess_expiration'].

Usually we configure otherwise:

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

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

Link:

Browser other questions tagged

You are not signed in. Login or sign up in order to post.