Skip to content
Snippets Groups Projects
Commit e85dc43f authored by Olav Morken's avatar Olav Morken
Browse files

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
parent 9af9e879
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment