• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How reliable is the FileHandler session driver?

#5
(07-27-2019, 08:04 AM)InsiteFX Wrote: You can always check to see if it is an Ajax request also before destroying the session.

PHP Code:
// Check for AJAX request.
if ($request->isAJAX())
{
 
¬† ¬†session->destroy();


That really isn't the issue. The logout code runs only when someone clicks the logout button and I don't destroy the session anywhere else.

The issue is that my session data is being lost while the file containing the data still exists. This happens with normal page navigations. I would be clicking between pages and it would just log me out.

The peculiar part is that if I call session destroy, the session file is left with the previous url I visited and the time to regenerate the session name. That seems normal. CI uses those for internal functions. Now, when the session is lost inexplicably, only the previous url value is left in the session file. The session regeneration time is no longer there which I think is a CI issue rather than anything I have coded.
Reply


Messages In This Thread
RE: How reliable is the FileHandler session driver? - by angrymongol - 07-29-2019, 08:38 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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