alzen8work / CodeIgniter-HMVC

CodeIgniter 3.1.10 with HMVC
MIT License
45 stars 55 forks source link

codeigniter session problem cloudflare #3

Open xaiborweb opened 5 years ago

xaiborweb commented 5 years ago

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.

if ($ this-> ion_auth-> logged_in ()) {
}

For this reason in /application/config/autoload.php charge $ autoload ['libraries'] = array ('ion_auth'); in my localhost everything is perfect, but in my website protected with cloudflare, create multiple sessions just with this: __ci_last_regenerate | i: 1544893031; 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.

alzen8work commented 5 years ago

hi @xaiborweb , sorry for the delay, so far i have yet to try ion-auth login so i may not know what issue u faced. may i know know that you have solved the problem that you face so far?