Welcome Guest, Not a member yet? Register   Sign In
Session between controllers
#4

[eluser]Ben Edmunds[/eluser]
OK, just do this in your controller

Code:
$this->session->set_userdata('username','test');
$this->session->set_userdata('logged_in',TRUE);

echo $this->session->userdata('username') . " - logged_in=" . $this->session->userdata('logged_in');

What do you get?


Messages In This Thread
Session between controllers - by El Forum - 11-01-2009, 02:01 PM
Session between controllers - by El Forum - 11-01-2009, 02:18 PM
Session between controllers - by El Forum - 11-01-2009, 02:46 PM
Session between controllers - by El Forum - 11-01-2009, 02:51 PM
Session between controllers - by El Forum - 11-01-2009, 02:54 PM
Session between controllers - by El Forum - 11-01-2009, 03:11 PM
Session between controllers - by El Forum - 11-01-2009, 03:24 PM
Session between controllers - by El Forum - 11-01-2009, 07:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB