CodeIgniter Forums
suggest for authentication library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: suggest for authentication library (/showthread.php?tid=24393)



suggest for authentication library - El Forum - 11-09-2009

[eluser]davidino86[/eluser]
hello,

who can give me a suggest for an authentication library that have a permissions Role like admin guest and others?

thanks in advance


suggest for authentication library - El Forum - 11-09-2009

[eluser]Flemming[/eluser]
you could look at this excellent ACL: http://ellislab.com/forums/viewthread/111916

Create your users table and assign each user a group. Then create a groups table, eg.

Group 1 (super user): 1,2,3,4
Group 2 (admin): 2,3
Group 3 (guest): 4

when a user logs in, store their permissions in a session. The ACL will check the session against the URI they are trying to access and either grant or deny access. Very slick!

hope that helps?