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

[eluser]mistress_shiira[/eluser]
hi guys!
i just want your comments on this.i have a callback function on my validation that checks for the username and password.i tried to set the logged_in field to 1 on successful validation before directing it to another page.
i tried to do this:
Code:
$this->session->set_userdata('logged_in',1);
but when i look at my ci_sessions table,the logged_in field remained 0.

is session the correct way for me to do this or not?
basically,i dont want the users to be able to access other pages if they are not logged in.

thanks!


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