Welcome Guest, Not a member yet? Register   Sign In
After redirect session data null ---solved
#1

[eluser]sayed[/eluser]
Hi,
I was facing a weird problem in CI. My CI code was same but few days later when I permit more permission to a user it doesn't not longing. After lots of struggling I found the problem. Problem was when I redirect the controller after pushing all the permission to session, it just null my session values. Problem is CI session variable may not contain more data(memory size issue). Now I solved this by distributing my permission data.Like when I redirect to a controller,that controller load its own permission for logged in user. If any one face this issue(CI session variable memori limit) and solved other way please share.

thanks.
#2

[eluser]WanWizard[/eluser]
If you use cookie based sessions (i.e. not the database option), the maximum size of the cookie is 4Kb.

Due to cookie overhead (and even more if you encrypt the cookie), the actual data you can store in a cookie is less than that.
#3

[eluser]sayed[/eluser]
I just use CI(1.7.2) default session library.Is there any memory limitation for CI session ?
#4

[eluser]WanWizard[/eluser]
If you haven't changed any config, CI is using cookie based sessions.

Switch to database sessions, and your problem is gone.
#5

[eluser]sayed[/eluser]
thanks for reply. Now I am going for database session




Theme © iAndrew 2016 - Forum software by © MyBB