Revision: 2136
Author: olavmrk
Date: Tue Jan 26 02:07:25 2010
Log: Session: Add getAuthnInstant().
http://code.google.com/p/simplesamlphp/source/detail?r=2136

Modified:
 /trunk/lib/SimpleSAML/Session.php

=======================================
--- /trunk/lib/SimpleSAML/Session.php   Wed Dec  2 03:51:44 2009
+++ /trunk/lib/SimpleSAML/Session.php   Tue Jan 26 02:07:25 2010
@@ -518,6 +518,20 @@
        public function isAuthenticated() {
                return $this->authenticated;
        }
+
+
+       /**
+        * Retrieve the time the user was authenticated.
+        *
+ * @return int|NULL The timestamp for when the user was authenticated. NULL if the user hasn't authenticated.
+        */
+       public function getAuthnInstant() {
+               if (!$this->isAuthenticated()) {
+                       return NULL;
+               }
+
+               return $this->sessionstarted;
+       }


        // *** Attributes ***

--
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