Welcome Guest, Not a member yet? Register   Sign In
Encrypting Session Data Stored in Database
#1

[eluser]Eric Cope[/eluser]
Does CI support encryption of the data stored in the database? I am not talking about the data stored in the cookie, but the string stored in the database?
#2

[eluser]darkhouse[/eluser]
You could probably extend the session library and make it use the encryption library to encrypt the serialized data before you store it, and then decrypt it when you retrieve it. You would just need to modify the sess_write and sess_read functions where it serializes and unserializes the data, respectively, with your encryption.
#3

[eluser]Eric Cope[/eluser]
that's what I assumed, but I did not know if there was an undocumented feature...




Theme © iAndrew 2016 - Forum software by © MyBB