Welcome Guest, Not a member yet? Register   Sign In
Dynamic Session Problem
#1

[eluser]Suhas nazir[/eluser]
Hello In my project i am using some dynamic name for session variables for storing values ,however i am not unsetting this sessions ,This is a product booking site .After 3 or 4 booking session values shows some unexpected behavior ,like not setting some values some times ,some times no problem ,I am using codeigniter session library ..Can anyone tell how to fix this problem
#2

[eluser]WanWizard[/eluser]
You are using cookie based sessions? If so, switch to database sessions.

A cookie has a maximum size of 4Kb, so the amount of information you can store in there is limited, even more if you encrypt the cookie (which introduces encryption overhead).

If you use database sessions, your storage is limited to the size of the user_data field in your session table. Also, you don't send any user data to the client anymore, which is a plus from a security point of view.
#3

[eluser]Suhas nazir[/eluser]
Hello actually i cant find a user_data field in session table.Can u explain it more explicitly please.
#4

[eluser]WanWizard[/eluser]
Have a look at the session library section in the manual.

It explains how to setup database sessions, and the structure of the sessions table.




Theme © iAndrew 2016 - Forum software by © MyBB