Skip to content
Snippets Groups Projects
Commit d48656f0 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Adding functionality in sessino to get a list of SP sessions

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@57 44740490-163a-0410-bde0-09ae8108e29a
parent 063fcc15
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,19 @@ class SimpleSAML_Session {
return null;
}
public function get_sp_list() {
$list = array();
if (!$this->sp_at_idpsessions) return $list;
foreach ($this->sp_at_idpsessions AS $entityid => $sp) {
if ($sp == self::STATE_ONLINE) {
$list[] = $entityid;
}
}
return $list;
}
public function set_sp_logout_completed($entityid) {
$this->sp_at_idpsessions[$entityid] = self::STATE_LOGGEDOUT;
}
......
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