Welcome Guest, Not a member yet? Register   Sign In
Session in codeigniter clear by itself
#1

[eluser]Unknown[/eluser]
Dear all,
I feel boring with session in codeigniter. First i use default setting with cookie it got clear by itself. After that I use with database still clear by itself after i refresh one or two time. What wrong? Please Help me

Thank you.
#2

[eluser]pickupman[/eluser]
Many have had better luck changing in application/config/config.php the 'sess_cookie_name' from ci_session to cisession. (remove underscore). Also, are you using AJAX in your application. If so, AJAX can cause a race condition that will mess up a session as well when sending two simultaneous AJAX requests. The one AJAX request may cause the session id to get rotated from garage collection, and the 2nd request will fail because the cookie will no longer be valid.

#3

[eluser]InsiteFX[/eluser]
IE Browser's are the one's that have cookie problem's when it is named ci_session for the cookie name.

IE converts the underscrore to a hex number 09

#4

[eluser]coolfactor[/eluser]
Please provide more details on the flow of your application. If the session is "clearing by itself", chances are it's not being saved properly in the cookie at all.




Theme © iAndrew 2016 - Forum software by © MyBB