Welcome Guest, Not a member yet? Register   Sign In
CI sessions - where is user data saved?
#4

[eluser]ortwin.van.vessem[/eluser]
Hi Moot,

I read your question to fast, I thought you asked the community where CI stores the userdata when parameter sess_use_database is enabled in the config.php.

To be more precise. The following data is stored in a CI Cookie when the parameter sess_use_database = TRUE:

Code:
[array]
(
     'session_id'    => random hash,
     'ip_address'    => 'string - user IP address',
     'user_agent'    => 'string - user agent data',
     'last_activity' => timestamp
)

If you have the encryption option enabled, the serialized array will be encrypted before being stored in the cookie, making the data highly secure and impervious to being read or altered by someone. The Session class will take care of initializing and encrypting the data automatically.


Messages In This Thread
CI sessions - where is user data saved? - by El Forum - 09-10-2013, 11:05 AM
CI sessions - where is user data saved? - by El Forum - 09-10-2013, 11:20 AM
CI sessions - where is user data saved? - by El Forum - 09-10-2013, 11:30 AM
CI sessions - where is user data saved? - by El Forum - 09-10-2013, 01:08 PM
CI sessions - where is user data saved? - by El Forum - 09-10-2013, 01:13 PM
CI sessions - where is user data saved? - by El Forum - 09-10-2013, 01:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB