Revision: 2058
Author: olavmrk
Date: Thu Dec 17 00:04:50 2009
Log: Auth_State: Add debug log entries.
http://code.google.com/p/simplesamlphp/source/detail?r=2058

Modified:
  /trunk/lib/SimpleSAML/Auth/State.php

=======================================
--- /trunk/lib/SimpleSAML/Auth/State.php        Wed Nov 18 00:14:44 2009
+++ /trunk/lib/SimpleSAML/Auth/State.php        Thu Dec 17 00:04:50 2009
@@ -117,6 +117,8 @@
                $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 @@
                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) {
@@ -199,6 +203,8 @@
                        /* This state hasn't been saved. */
                        return;
                }
+
+               SimpleSAML_Logger::debug('Deleting state: ' .  
var_export($state[self::ID], TRUE));

                $session = SimpleSAML_Session::getInstance();
                $session->deleteData('SimpleSAML_Auth_State', $state[self::ID]);

--

You received this message because you are subscribed to the Google Groups 
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simplesamlphp-commits?hl=en.


Reply via email to