summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML/XML/SAML20
diff options
context:
space:
mode:
authorOlav Morken <olav.morken@uninett.no>2008-07-17 05:48:39 +0000
committerOlav Morken <olav.morken@uninett.no>2008-07-17 05:48:39 +0000
commitf46e8edcf522679b30366d942b033fcbd3cbcace (patch)
treea8fcfa0049277e91d9c981ec9590a71c210538a8 /lib/SimpleSAML/XML/SAML20
parentf2eece4f4bf3e28852aa1529228f4cf180a84704 (diff)
downloadsimplesamlphp-f46e8edcf522679b30366d942b033fcbd3cbcace.zip
simplesamlphp-f46e8edcf522679b30366d942b033fcbd3cbcace.tar.gz
simplesamlphp-f46e8edcf522679b30366d942b033fcbd3cbcace.tar.bz2
Create a persistent session index for SAML2 SPs.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@786 44740490-163a-0410-bde0-09ae8108e29a
Diffstat (limited to 'lib/SimpleSAML/XML/SAML20')
-rw-r--r--lib/SimpleSAML/XML/SAML20/AuthnResponse.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/SimpleSAML/XML/SAML20/AuthnResponse.php b/lib/SimpleSAML/XML/SAML20/AuthnResponse.php
index 855908a..e624160 100644
--- a/lib/SimpleSAML/XML/SAML20/AuthnResponse.php
+++ b/lib/SimpleSAML/XML/SAML20/AuthnResponse.php
@@ -609,9 +609,11 @@ class SimpleSAML_XML_SAML20_AuthnResponse extends SimpleSAML_XML_AuthnResponse {
$issueInstant = SimpleSAML_Utilities::generateTimestamp();
$assertionExpire = SimpleSAML_Utilities::generateTimestamp(time() + 60 * 5);# 5 minutes
$notBefore = SimpleSAML_Utilities::generateTimestamp(time() - 30);
-
+
$assertionid = SimpleSAML_Utilities::generateID();
- $sessionindex = SimpleSAML_Utilities::generateID();
+
+ $session = SimpleSAML_Session::getInstance();
+ $sessionindex = $session->getSessionIndex();
/**