Welcome Guest, Not a member yet? Register   Sign In
Passing a variable on redirect
#9

[eluser]ojcarga[/eluser]
Sure, sorry, my mistake, I meant "set_flashdata()",,, it is useful.

For your last question I think you got the response, right?

Code:
//SET DATA TO THE SESSION
$this->session->set_userdata('some_name', 'some_value');

//RETRIEVE DATA FROM THE SESSION
$this->session->userdata('item');

//DESTROY THE SESSION WHEN THE USER HIT LOGOUT BUTTON
$this->session->sess_destroy();


Messages In This Thread
Passing a variable on redirect - by El Forum - 05-04-2012, 12:05 PM
Passing a variable on redirect - by El Forum - 05-04-2012, 12:06 PM
Passing a variable on redirect - by El Forum - 05-04-2012, 12:08 PM
Passing a variable on redirect - by El Forum - 05-04-2012, 12:22 PM
Passing a variable on redirect - by El Forum - 05-04-2012, 12:55 PM
Passing a variable on redirect - by El Forum - 05-04-2012, 01:15 PM
Passing a variable on redirect - by El Forum - 05-04-2012, 02:36 PM
Passing a variable on redirect - by El Forum - 05-04-2012, 02:40 PM
Passing a variable on redirect - by El Forum - 05-04-2012, 02:48 PM
Passing a variable on redirect - by El Forum - 05-04-2012, 03:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB