• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Session in codeigniter clear by itself

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.

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.

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

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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.