CodeIgniter Forums
Simple User Login - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Simple User Login (/showthread.php?tid=28280)



Simple User Login - El Forum - 03-06-2010

[eluser]Jedi_Mind[/eluser]
Hello,

Can somebody show me how to create a simple user login please?

I have a form which i can register a user, it saves the details to a table called tbl_register

I now want to use a form where the user types in the username and password and it checks if the user details are in the registration table..if they are i'd like it to simply display which user is now logged in

as soon as this is sorted i can then create a logout, user session etc

Thank you guys, im very new to this


Simple User Login - El Forum - 03-06-2010

[eluser]2think[/eluser]
Jedi_mind,

Here's an article, not sure if there's more help in the comments: http://davidwinter.me.uk/articles/2009/02/21/authentication-with-codeigniter/

Don't forget, you can also check the code of others such as Matt Auth and Ion Auth (they can both be found in the Ignited Code section).


Simple User Login - El Forum - 03-07-2010

[eluser]Iwasignited[/eluser]
Also, you may want to check out Jeff Way's Codeigniter from scratch series

Day 6 is what you need:
http://net.tutsplus.com/videos/screencasts/codeigniter-from-scratch-day-6-login/

Hope that helps