From e85dc43f74a21b018503436a61d20df23c5695ab Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Thu, 15 May 2008 14:13:30 +0000
Subject: [PATCH] Session: set dirty-bit when changing state of sp
 associations.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@573 44740490-163a-0410-bde0-09ae8108e29a
---
 lib/SimpleSAML/Session.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/SimpleSAML/Session.php b/lib/SimpleSAML/Session.php
index 8dad1ec81..6825b1d26 100644
--- a/lib/SimpleSAML/Session.php
+++ b/lib/SimpleSAML/Session.php
@@ -174,12 +174,15 @@ class SimpleSAML_Session {
 	
 	public function add_sp_session($entityid) {
 		SimpleSAML_Logger::debug('Library - Session: Adding SP session: ' . $entityid);
+		$this->dirty = TRUE;
 		$this->sp_at_idpsessions[$entityid] = self::STATE_ONLINE;
 	}
 	
 	public function get_next_sp_logout() {
 		
 		if (!$this->sp_at_idpsessions) return null;
+
+		$this->dirty = TRUE;
 		
 		foreach ($this->sp_at_idpsessions AS $entityid => $sp) {
 			if ($sp == self::STATE_ONLINE) {
-- 
GitLab