Welcome Guest, Not a member yet? Register   Sign In
what do you store in your login cookie ?
#5

[eluser]Federico BaƱa[/eluser]
I could use some help on this issue too.

I also encrypt sessions and store them into the database. Sessions have session id, username and password (along with some other app-related info) and on logged-only pages I re-check the session values against the database. This gives admins full control over who has access and who doesnt as they can change someone's pwd and take them out the system right away.

The issue here is that CI does 2 calls to the db, 1 comes with the built-in functionallity of the session library that checks the session_id in the cookie against the db every time, and the other is the one I have to do to compare my data against the users.

I noticed that the session lib sends the userdata to the database as a serialized array, but is there a way to save it as actual table fields? without creating a custom library?


Messages In This Thread
what do you store in your login cookie ? - by El Forum - 12-26-2010, 10:01 AM
what do you store in your login cookie ? - by El Forum - 12-26-2010, 09:13 PM
what do you store in your login cookie ? - by El Forum - 12-26-2010, 11:04 PM
what do you store in your login cookie ? - by El Forum - 12-27-2010, 07:03 AM
what do you store in your login cookie ? - by El Forum - 12-27-2010, 07:47 AM
what do you store in your login cookie ? - by El Forum - 12-27-2010, 11:17 AM
what do you store in your login cookie ? - by El Forum - 12-27-2010, 11:28 AM
what do you store in your login cookie ? - by El Forum - 12-28-2010, 11:08 PM
what do you store in your login cookie ? - by El Forum - 12-29-2010, 01:49 AM
what do you store in your login cookie ? - by El Forum - 12-29-2010, 05:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB