Help with session data - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Help with session data (/showthread.php?tid=60088) |
Help with session data - El Forum - 01-13-2014 [eluser]Unknown[/eluser] Hi, I'm new to CI and MVC. I need help with session data. I'm creating a login page and when user log in is successful it will display "Welcome username". I'm storing the users username session from the model then access the data in the view. The view however, displays "0". Here's the controller Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Here's the model Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Here's the other controller for home Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); and the view for the validated user Code: <?php I don't know which part I did is wrong Help with session data - El Forum - 01-13-2014 [eluser]Unknown[/eluser] I'm sorry I got it resolved. I'm so dumb.. |