CodeIgniter Creates a New Session with Each Page Load

April 22, 2016

php

Just spent 3 hours debugging a session bug in my webapp. CodeIginter was creating a brand new session with each page load. The issue was a misconfiguration with my config file.

Fix was simple, in /application/config/config.php, make sure correct domain is set for $config['cookie_domain'].


© 2017 Amer Khalid