05-03-2012, 09:23 AM
[eluser]Kency[/eluser]
Hello everyone !
Im new in Codeigniter, i try to write a small project with codeigniter.
And i want show some function to user who has roles to view
my database structure :
Table Group
and my question is:
When user login into admin panel , i create a session to store username - password and logged(this parameter to check user login or not)
and when user login is true i use username and password store in session to pass it into a method to get permission of he or she can access to site management or user management or not.
Is it safe for my site or best way to pratice?
And everybody has any method or advices for me?
Hello everyone !
Im new in Codeigniter, i try to write a small project with codeigniter.
And i want show some function to user who has roles to view
my database structure :
Table Group
Quote:Groupdid int(11)
Groupname varchar(255)
adminpanel tinyint(1) // user can login into adminpanel when it value is 1 else is 0
sitemanager tinyint(1) // some users can access to admin panel but sometimes they can't management site (turn the site on /off)
usermanager tinyint(1) //this function to manage user, can add/edit/delete user if value is 1
and my question is:
When user login into admin panel , i create a session to store username - password and logged(this parameter to check user login or not)
and when user login is true i use username and password store in session to pass it into a method to get permission of he or she can access to site management or user management or not.
Is it safe for my site or best way to pratice?
And everybody has any method or advices for me?