CodeIgniter Forums
Login / authentication advice... - 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: Login / authentication advice... (/showthread.php?tid=32971)



Login / authentication advice... - El Forum - 08-11-2010

[eluser]Unknown[/eluser]
So I was working on a way of remembering a user's login, and the simplest way I thought of doing it was using CI's session helper, and adding a user's ID to the user_data field for the row in the sessions table when they log in.

I admit I'm a bit new to sessions and handling them securely, especially in regards to "remember me" features, but is there any particular reason this isn't a good idea?