I just notice that CodeIgniter store session as Cookies, the problem final user could see easily our array session even encrypt $config['sess_encrypt_cookie'] = TRUE;, i feel not safe.
I want like raw php $_session it is not display on client side browser.
The solution is to not save session data client side. In application/config/config.php, set $config['sess_use_database'] to TRUE. This will save all session data in a database.
You will need to make sure you enter your DB connection settings into CI, and make sure the table ci_sessions exists in your database.
CI User Guide - Sessions Class
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With