CodeIgniter Forums
codeigniter session duplicate with cloudflare - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forum-9.html)
+--- Thread: codeigniter session duplicate with cloudflare (/thread-72408.html)



codeigniter session duplicate with cloudflare - xaiborweb - 12-15-2018

Hi, I'm using Ion Auth social
https://github.com/ghosthouse/CodeIgniter-Ion-Auth-Social

and throughout my web check if the user has a session started or not.
PHP Code:
if ($ this-> ion_auth-> logged_in ()) {

For this reason in /application/config/autoload.php charge

PHP Code:
autoload ['libraries'] = array ('ion_auth'); 

in my localhost everything is perfect, but in my website protected with cloudflare, create multiple sessions just with this:

PHP Code:
__ci_last_regenerate i1544893031

create more than 50 sessions per second only with this info which overloads my sql, I think it is a problem of CodeIgniter sessions with cloudflare.

So I'm wondering if you can share an option / solution, so that only one codeigniter session is created when the user logs in Ion Auth.
Thank you.