Welcome Guest, Not a member yet? Register   Sign In
Ajax and Session loss
#7

[eluser]kenjis[/eluser]
patch to current ci tip:

Code:
diff -r 0bff9acdc441 system/libraries/Session.php
--- a/system/libraries/Session.php    Mon May 09 21:14:37 2011 +0100
+++ b/system/libraries/Session.php    Fri May 13 10:18:23 2011 +0900
@@ -341,6 +341,12 @@
      */
     function sess_update()
     {
+        // Skip the session update in case Ajax call
+        if ($this->CI->input->is_ajax_request())
+        {
+            return;
+        }
+        
         // We only update the session every five minutes by default
         if (($this->userdata['last_activity'] + $this->sess_time_to_update) >= $this->now)
         {


Messages In This Thread
Ajax and Session loss - by El Forum - 09-14-2010, 07:09 PM
Ajax and Session loss - by El Forum - 09-14-2010, 10:41 PM
Ajax and Session loss - by El Forum - 09-14-2010, 11:00 PM
Ajax and Session loss - by El Forum - 09-14-2010, 11:12 PM
Ajax and Session loss - by El Forum - 09-14-2010, 11:13 PM
Ajax and Session loss - by El Forum - 05-12-2011, 05:33 PM
Ajax and Session loss - by El Forum - 05-12-2011, 07:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB