Welcome Guest, Not a member yet? Register   Sign In
Setting session data in the controller
#3

[eluser]bcarter[/eluser]
Sorry I forgot something! When a user logs in it checks the username and password. If there's a match it returns 'true'. The username and password are then set as session variables (that's because I 'borrowed' the script. What I really want to do is set the staff members ID as the session variable so that I can use it later on. The way I do it here is add the staff members ID to the session data once they are logged on (well actually it only happens if they refresh that particular page at the moment, but the principle is there. What I want to do is just assign the ID to the session variable as soon as they log in.

Any ideas?

Cheers


Messages In This Thread
Setting session data in the controller - by El Forum - 08-18-2010, 04:45 AM
Setting session data in the controller - by El Forum - 08-18-2010, 07:21 AM
Setting session data in the controller - by El Forum - 08-18-2010, 07:46 AM
Setting session data in the controller - by El Forum - 08-18-2010, 10:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB