Welcome Guest, Not a member yet? Register   Sign In
pulling CI into another system
#2

[eluser]gtech[/eluser]
I recommend to read the

Adding Custom Session Data in the [url="http://ellislab.com/codeigniter/user-guide/libraries/sessions.html"]sessions section of the userguide[/url]

Once you understand the guide you can add your own is_admin variable to the session,
so if the user logs in as an admin user you can set your is_admin variable to TRUE in the session.

you can check the variable when trying to access admin pages.



I would also read about Saving Session Data to a Database in the session guide for added security. once configured to use the database you shouldn't have to do anything extra.


Messages In This Thread
pulling CI into another system - by El Forum - 06-15-2009, 04:48 PM
pulling CI into another system - by El Forum - 06-15-2009, 05:06 PM
pulling CI into another system - by El Forum - 06-15-2009, 05:48 PM
pulling CI into another system - by El Forum - 06-15-2009, 05:59 PM
pulling CI into another system - by El Forum - 06-15-2009, 06:29 PM
pulling CI into another system - by El Forum - 06-15-2009, 09:59 PM
pulling CI into another system - by El Forum - 06-15-2009, 11:50 PM
pulling CI into another system - by El Forum - 06-16-2009, 03:21 AM
pulling CI into another system - by El Forum - 06-17-2009, 10:32 PM
pulling CI into another system - by El Forum - 06-18-2009, 05:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB