Welcome Guest, Not a member yet? Register   Sign In
Storing large sessions?
#1

[eluser]Unknown[/eluser]
Hi,

I'm finishing my first project with CI, and one problem I've hit towards the end is the amount of session/state data I'm trying to store is hitting the 4k cookie limit.

I've tried adding the ci_session table and changing the fields in the config file to say I want to use the DB, but it just stored the session details, not the session data.

If this isn't possible, does anyone have any suggestions for keeping a larger amount of session data hot?

Thanks,

Remy Sharp.
#2

[eluser]Popcorn[/eluser]
Hi,

This problem has been addressed with 3rd party session libraries, you can find many in the CodeIgniter Wiki. They will only store the session id in the cookie the store all the data in the database.

http://codeigniter.com/wiki/DB2_Session/
http://codeigniter.com/wiki/DB_Session/

There are some more in the forum (Ignited Code)
#3

[eluser]bapobap[/eluser]
Is there anything we can use that can be dropped in to take over CI's built-in session management?

I don't want to have to go through my entire app to change everything, name $this->session to $this->DB2_session etc?
#4

[eluser]Aea[/eluser]
Yes, I believe native session is one drop in replacement.




Theme © iAndrew 2016 - Forum software by © MyBB