Welcome Guest, Not a member yet? Register   Sign In
Session Handling From Models
#1

[eluser]Thimuth[/eluser]
Can we set session variables from the model classes?
When i call " $this->session->set_userdata($userdata); " with inside a model class, it gives an error.
Does the session formation is a controller specific task?
#2

[eluser]flaky[/eluser]
example
Code:
$CI =& get_instance();
$CI->session->userdata('user_id);




Theme © iAndrew 2016 - Forum software by © MyBB