Session Library another Error |
[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
[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')) |
Welcome Guest, Not a member yet? Register Sign In |