Welcome Guest, Not a member yet? Register   Sign In
Trying to store session data then redirect - Failing to store session! (First post...)
#3

[eluser]stuffradio[/eluser]
Sounds like you're doing it incorrectly.

What's your query code?

Should be something like:
Code:
$query = $this->db->get('table');
$row = $query->row();

$this->session->set_userdata('userid', $row->id);

redirect('home', 'refresh');

You still need to do a query to select where the username is in the db though.


Messages In This Thread
Trying to store session data then redirect - Failing to store session! (First post...) - by El Forum - 06-06-2008, 04:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB