Welcome Guest, Not a member yet? Register   Sign In
Upgrading Codeigniter from 1.7.3 to 2.2.2 - Issue with sessions library
#9

[eluser]adela[/eluser]
[quote author="InsiteFX" date="1412037391"]Cookies hold 4kb what CroNix is saying is that to be safe only store 2kb, there is a lot of over head
in using cookies like encryption etc;

Database sessions are also more safe then cookies, the user_data can also be set to
text
mediumtext
longtext

for different storage sizes.
[/quote]

I set it like that, so my sessions are now stored into the database .. but why it is storing an array user_data too?

Example: (this is stored in the user_data column of the sessions table)

Code:
a:5:{s:9:"user_data";s:0:"";s:6:"logged";b:1;s:8:"users_id";s:3:"507";s:8:"teams_id";s:2:"78";s:15:"leader_teams_id";s:2:"78";}

as you can see there is empty user_data array in the actual cookie, why is that and is something i should worry about? Sometimes its included into the cookie and sometimes its not included. Let me know please ...

I am only storing logged, users_id, teams_id and leader_teams_id
So, what is this user_data in the start? As I stated sometimes its not included and its weird.


Messages In This Thread
Upgrading Codeigniter from 1.7.3 to 2.2.2 - Issue with sessions library - by El Forum - 09-29-2014, 05:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB