Welcome Guest, Not a member yet? Register   Sign In
All session info from cookie to database
#2

[eluser]Thorpe Obazee[/eluser]
The Session Class has an option to store information on the database. The Session Class handles the verification(IP, user-agent, database(if you use the DB option) etc) whenever you ask for data. You can easily change the data just like how your normally do with CI Sessions.

Quote:When session data is available in a database, every time a valid session is found in the user's cookie, a database query is performed to match it. If the session ID does not match, the session is destroyed. Session IDs can never be updated, they can only be generated when a new session is created.

To validate the user rights, you just have to check user rights on on your protected pages.


Messages In This Thread
All session info from cookie to database - by El Forum - 11-06-2009, 05:46 PM
All session info from cookie to database - by El Forum - 11-06-2009, 06:11 PM
All session info from cookie to database - by El Forum - 11-06-2009, 06:19 PM
All session info from cookie to database - by El Forum - 11-06-2009, 06:59 PM
All session info from cookie to database - by El Forum - 11-07-2009, 03:03 AM
All session info from cookie to database - by El Forum - 11-07-2009, 04:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB