problem with session class !! - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: problem with session class !! (/showthread.php?tid=48416) |
problem with session class !! - El Forum - 01-15-2012 [eluser]alsemany[/eluser] this code for the log in script Code: if ($login == true) I suppose that the session have been saved but if I open any page after this with the code Quote: print_r ($this->session->userdata); this generate a new session with an empty user_data like this Quote:Array ( [session_id] => dcdfdefc19734ea8941e6d7075df0b99 [ip_address] => 41.XXX.XXX.XX [user_agent] => Mozilla/5.0 (X11; Linux i686; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 [last_activity] => 1326691863 [user_data] => ) how can I check if the user logged or not wheather the session data is not saved !! I'm not understanding this class well , I hope someone help me to understand this point. |