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

core:idp:logout-iframe: Log new statistics.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3056 44740490-163a-0410-bde0-09ae8108e29a
parent 88b50a71
No related branches found
No related tags found
No related merge requests found
......@@ -12,10 +12,12 @@ $associations = $idp->getAssociations();
if (!isset($_REQUEST['cancel'])) {
SimpleSAML_Logger::stats('slo-iframe done');
SimpleSAML_Stats::log('core:idp:logout-iframe:page', array('type' => 'done'));
$SPs = $state['core:Logout-IFrame:Associations'];
} else {
/* User skipped global logout. */
SimpleSAML_Logger::stats('slo-iframe skip');
SimpleSAML_Stats::log('core:idp:logout-iframe:page', array('type' => 'skip'));
$SPs = array(); /* No SPs should have been logged out. */
$state['core:Failed'] = TRUE; /* Mark as partial logout. */
}
......@@ -52,6 +54,7 @@ foreach ($SPs as $assocId => $sp) {
$spId = $assocId;
}
SimpleSAML_Logger::stats('slo-iframe-fail ' . $spId);
SimpleSAML_Stats::log('core:idp:logout-iframe:spfail', array('sp' => $spId));
$state['core:Failed'] = TRUE;
}
......
......@@ -16,6 +16,7 @@ if (isset($_REQUEST['type'])) {
if ($type !== 'embed' && $type !== 'async') {
SimpleSAML_Logger::stats('slo-iframe ' . $type);
SimpleSAML_Stats::log('core:idp:logout-iframe:page', array('type' => $type));
}
$state = SimpleSAML_Auth_State::loadState($id, 'core:Logout-IFrame');
......
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