{"action":"closed","issue":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4866","repository_url":"https://api.github.com/repos/bcit-ci/CodeIgniter","labels_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4866/labels{/name}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4866/comments","events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4866/events","html_url":"https://github.com/bcit-ci/CodeIgniter/issues/4866","id":184427367,"number":4866,"title":"Garbage collector does not delete old session data","user":{"login":"osvaldasvalutis","id":900490,"avatar_url":"https://avatars.githubusercontent.com/u/900490?v=3","gravatar_id":"","url":"https://api.github.com/users/osvaldasvalutis","html_url":"https://github.com/osvaldasvalutis","followers_url":"https://api.github.com/users/osvaldasvalutis/followers","following_url":"https://api.github.com/users/osvaldasvalutis/following{/other_user}","gists_url":"https://api.github.com/users/osvaldasvalutis/gists{/gist_id}","starred_url":"https://api.github.com/users/osvaldasvalutis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osvaldasvalutis/subscriptions","organizations_url":"https://api.github.com/users/osvaldasvalutis/orgs","repos_url":"https://api.github.com/users/osvaldasvalutis/repos","events_url":"https://api.github.com/users/osvaldasvalutis/events{/privacy}","received_events_url":"https://api.github.com/users/osvaldasvalutis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/labels/Duplicate","name":"Duplicate","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-21T08:26:42Z","updated_at":"2016-10-21T13:34:11Z","closed_at":"2016-10-21T13:34:11Z","body":"Hi. I use database storing session data:\r\n\r\n```\r\n// CI 3.1.0\r\n$config['sess_driver']\t\t\t\t= 'database';\r\n$config['sess_cookie_name']\t\t\t= 'ci_session';\r\n$config['sess_expiration']\t\t\t= 3600*12;\r\n$config['sess_save_path']\t\t\t= 'ci_sessions'; // table name when sess_driver=database\r\n$config['sess_match_ip']\t\t\t= FALSE;\r\n$config['sess_time_to_update']\t\t= 300;\r\n$config['sess_regenerate_destroy']\t= FALSE; // <...> When set to FALSE, the data will be later deleted by the garbage collector.\r\n```\r\n\r\n**Problem:** garbage collector does not delete old session data so I have to empty `ci_sessions` table from time to time, otherwise it gets filled with gigabytes of data very fast.\r\n\r\nThere was no such problem prior to 3.0 version. Any ideas?"}}
{"actor":{"display_login":"narfbg"}}