Welcome Guest, Not a member yet? Register   Sign In
Session Fixation and CodeIgniter Session Libary
#1

[eluser]searain[/eluser]
Does CodeIgniter Session Library already set up against of Session Fixation?

If not? What are my options?

If yes? do I need to some set up?
#2

[eluser]WanWizard[/eluser]
Yes, it will rotate the session id, the interval is configurable in the config.
#3

[eluser]searain[/eluser]
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 900;
$config['sess_expire_on_close'] = TRUE;
$config['sess_encrypt_cookie'] = TRUE;
$config['sess_use_database'] = TRUE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;

Thanks.

$config['sess_time_to_update'] = 300; is the set up interval for rotating the session id? For a high security required site, what value should I set up?

Thanks!
#4

[eluser]Unknown[/eluser]
rotate session id based on time is a poor session fixation countermeasure. Must implement a regenerate session_id method in Sesssion class




Theme © iAndrew 2016 - Forum software by © MyBB