![]() |
Disable IP address, user-agent string in cookie - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Disable IP address, user-agent string in cookie (/showthread.php?tid=70845) |
Disable IP address, user-agent string in cookie - yoyovolam - 06-07-2018 Hi, I'm working with CI 3.0 and I have a problem with GDPR policies I'd like to avoid CI store the IP address and User Agent of client in cookie. I try to set config : Code: $config['sess_match_ip'] = FALSE; But cookie still store IP address and User Agent. Also I found the code to set cookie with IP address and User Agent in function sess_create() in Session.php PHP Code: function sess_create() Is there any config to affect above code ? I need to keep the cookie without IP address and UA , Can anyone tell me how to avoid CI store the IP address and User Agent in Cookie. Thanks in advance. RE: Disable IP address, user-agent string in cookie - InsiteFX - 06-07-2018 In the config.php file the session array sess_match_ip should be false. RE: Disable IP address, user-agent string in cookie - Paradinight - 06-07-2018 (06-07-2018, 03:17 AM)yoyovolam Wrote: Hi, Update the Codeigniter Version. You using Codeigniter 2 and not 3 |