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

Auth_State: Add debug log entries.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2058 44740490-163a-0410-bde0-09ae8108e29a
parent ab79643e
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,8 @@ class SimpleSAML_Auth_State {
$session = SimpleSAML_Session::getInstance();
$session->setData('SimpleSAML_Auth_State', $id, $serializedState, 60*60);
SimpleSAML_Logger::debug('Saved state: ' . var_export($return, TRUE));
return $return;
}
......@@ -136,6 +138,8 @@ class SimpleSAML_Auth_State {
assert('is_string($id)');
assert('is_string($stage)');
SimpleSAML_Logger::debug('Loading state: ' . var_export($id, TRUE));
$tmp = explode(':', $id, 2);
$id = $tmp[0];
if (count($tmp) === 2) {
......@@ -200,6 +204,8 @@ class SimpleSAML_Auth_State {
return;
}
SimpleSAML_Logger::debug('Deleting state: ' . var_export($state[self::ID], TRUE));
$session = SimpleSAML_Session::getInstance();
$session->deleteData('SimpleSAML_Auth_State', $state[self::ID]);
}
......
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