Welcome Guest, Not a member yet? Register   Sign In
problem in session -- big data save into session!
#3

[eluser]pickupman[/eluser]
You want to make sure that you are using the database for sessions. It's a little safer and allows a lot more data to be saved than the 4kb cookie option.

See [url="http://ellislab.com/codeigniter/user-guide/libraries/sessions.html"]Saving Session Data to a Database[/url], then you may have to adjust the field size for the user_data column. Read the [url="http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html"]MySQL storage requirements[/url] and find out what data type will hold your information. May LONGTEXT or MEDIUMTEXT.

Keep in mind oversizing you columns will also slow down your database, as well fragment it with a lot of read / writes for session information.


Messages In This Thread
problem in session -- big data save into session! - by El Forum - 05-14-2011, 05:05 AM
problem in session -- big data save into session! - by El Forum - 05-14-2011, 05:06 AM
problem in session -- big data save into session! - by El Forum - 05-14-2011, 06:07 AM
problem in session -- big data save into session! - by El Forum - 05-15-2011, 04:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB