Welcome Guest, Not a member yet? Register   Sign In
Reactor Session - Duplicate IP Addresses in Database
#1

[eluser]troy_mccormick[/eluser]
So I'm using CI Reactor and I'm noticing that with the following settings:

Code:
<?php
$config['sess_cookie_name']        = 'cdsession';
$config['sess_expiration']         = 0;
$config['sess_expire_on_close']    = TRUE;
$config['sess_encrypt_cookie']     = TRUE;
$config['sess_use_database']       = TRUE;
$config['sess_table_name']         = 'cd_sessions';
$config['sess_match_ip']           = TRUE;
$config['sess_match_useragent']    = FALSE;
$config['sess_time_to_update']     = 300;

I'm seeing duplicate IP addresses in the database. Am I under the incorrect assumption that each IP address should only have one entry? And I'm not talking just two or three...I'm talking 10+ for each IP addresss...

Any light anyone could shed on this would be greatly helpful.

Thanks!
#2

[eluser]Greg Aker[/eluser]
Garbage collection kicks in and will clear out the old sessions in the session table. It updates a new one every 5 minutes, based on the configuration you have. So a new session is generated. Make sense?
#3

[eluser]R_Nelson[/eluser]
Like greg said it just keeps making a new one eery 5 minutes depending on how you have
Code:
$config['sess_time_to_update']     = 300;
set every 60 seconds is 1 min so 300 is 5 mins
#4

[eluser]guidorossi[/eluser]
Well, I think because this bug I've reported: https://bitbucket.org/ellislab/codeignit...se-cleanup

The garbage cleaner will clean all those sessions in two years...




Theme © iAndrew 2016 - Forum software by © MyBB