Skip to content
This repository
Browse code

Fix ticket #825. Related with session set to cache.

  • Loading branch information...
commit 66de46cd5b8bc9d144b4389211585c2aa56fc512 1 parent 9e4ecba
Luís Armando Bianchin authored May 07, 2011 markstory committed May 08, 2011

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  cake/libs/cache.php
6  cake/libs/cache.php
@@ -548,6 +548,12 @@ function settings($name = null) {
548 548
 		}
549 549
 		return array();
550 550
 	}
  551
+
  552
+	function __destruct() {
  553
+		if (Configure::read('Session.save') == 'cache' && function_exists('session_write_close')) {
  554
+		        session_write_close();
  555
+		    }
  556
+	}
551 557
 }
552 558
 
553 559
 /**

0 notes on commit 66de46c

Please sign in to comment.
Something went wrong with that request. Please try again.