Welcome Guest, Not a member yet? Register   Sign In
setting custom session variables
#2

[eluser]gtech[/eluser]
I have used the session for the same purpose and it works well. The session does time out (which is a good thing)

does this bit of code work (you should get a 1 displayed on the page)?
Code:
$this->session->set_userdata('logged_in',1);
print_r($this->session->userdata('logged_in'));


Messages In This Thread
setting custom session variables - by El Forum - 11-27-2007, 02:11 AM
setting custom session variables - by El Forum - 11-27-2007, 04:30 AM
setting custom session variables - by El Forum - 11-27-2007, 07:16 AM
setting custom session variables - by El Forum - 11-28-2007, 02:02 AM
setting custom session variables - by El Forum - 12-07-2007, 11:35 AM
setting custom session variables - by El Forum - 12-16-2007, 07:48 PM
setting custom session variables - by El Forum - 01-05-2008, 09:24 AM
setting custom session variables - by El Forum - 01-07-2008, 06:43 PM
setting custom session variables - by El Forum - 01-07-2008, 09:28 PM
setting custom session variables - by El Forum - 01-10-2008, 03:55 AM
setting custom session variables - by El Forum - 02-04-2008, 12:13 AM
setting custom session variables - by El Forum - 11-19-2009, 10:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB