Welcome Guest, Not a member yet? Register   Sign In
Finding the suitable way to store CI session
#1

[eluser]Unknown[/eluser]
There are problems on storing session either on local or database on using CI.

For develop branch, CI provides two ways to store session, session_cookie (database) and session_native (local).

Since my website is ready to clustering, the session cannot be stored on local. I tried to use network drive, NFS, it seems that the result very bad, the website will sometimes hang.

Before using network drive, I tried to use database to store session by using session cookie. However, Codeigniter uses session rotation by default for security issue. Since my website does always use Ajax, the session will be destroyed due to race condition of connections result in mismatching of session id. Therefore the system will kick the login user out. I found no way to switch off the session rotation though I tune $config['sess_time_to_update'] to larger value, the problem still persists.

Any solutions to store session?


Messages In This Thread
Finding the suitable way to store CI session - by El Forum - 11-05-2013, 08:34 PM
Finding the suitable way to store CI session - by El Forum - 11-06-2013, 12:32 AM
Finding the suitable way to store CI session - by El Forum - 11-06-2013, 04:56 AM
Finding the suitable way to store CI session - by El Forum - 11-07-2013, 10:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB