![]() |
Session Library another Error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Session Library another Error (/showthread.php?tid=19858) |
Session Library another Error - El Forum - 06-20-2009 [eluser]Zorancho[/eluser] Hi all. I found this website where some of the guys from CodeIgniter is having a tutorial about protection using the session library. His code was something like this: Code: class User extends Controller But when i try it i get this error: Severity: Warning Message: Illegal offset type in isset or empty Filename: libraries/Session.php Line Number: 422 And that line is: Code: function userdata($item) Any ideas? Thanks in advance Session Library another Error - El Forum - 06-21-2009 [eluser]pistolPete[/eluser] You need to use the function set_userdata()! Please see the user guide: Quote:Adding Custom Session Data Code: if($this->session->userdata('hash_string')) |