How can I get session at multiple controllers - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How can I get session at multiple controllers (/showthread.php?tid=73073) |
How can I get session at multiple controllers - nuonuonuo - 03-15-2019 Hi, I set SESSION at Login.php controller, And I want get SESSION at other controllers, But at other controllers, I get SESSION have `__ci_last_regenerate: 1552555932` only, No information I have stored in it. What can I do something get the SESSION? Thanks! This is my Login.php controller PHP Code: class Account extends CI_Controller And this controllers, I want use SESSION, but faile PHP Code: class Number_record extends CI_Controller RE: How can I get session at multiple controllers - InsiteFX - 03-16-2019 Load the Session library in ./application/config/autoload.php You should then be able to access your session data from anywhere in the application. |