session data not working at all - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: session data not working at all (/showthread.php?tid=68535) |
session data not working at all - armadillo - 07-22-2017 im having a really weird issue with CodeIgniter 3, the main issue is that logged_in is not being passed, its always empty and when it gets to dashboard.php its always empty and it is redirected to the login page again, doesnt matter if the user/pass is correct, logged_in is always false because it is never set this is the authenticate class: PHP Code: <?php PHP Code: <?php === in autoload.php === PHP Code: $autoload['libraries'] = array('database', 'session', 'form_validation'); the problem is in authenticate where its not passing the value for logged_in , this code works in Codeigniter 2, but not for version 3 RE: session data not working at all - Wouter60 - 07-22-2017 Did you follow step 6 in the documentation for upgrading from 2.x to 3.0? https://www.codeigniter.com/user_guide/installation/upgrade_300.html CI 3.x is quite different from CI 2.x when it comes to sessions. |