summaryrefslogtreecommitdiffstats
path: root/php/Attic/examples/sample-sp/assertionConsumer.php
diff options
context:
space:
mode:
authorChristophe Nowicki <cnowicki@easter-eggs.com>2004-08-19 13:55:00 +0000
committerChristophe Nowicki <cnowicki@easter-eggs.com>2004-08-19 13:55:00 +0000
commitd6c3b12af8f5708f5969cb3d66dcd2e63fad1612 (patch)
tree90d8a3f0b46e0973e7c3948882eff048e8b82e60 /php/Attic/examples/sample-sp/assertionConsumer.php
parentc1a38e82080f75795b89c064a301f29c0278e87d (diff)
downloadlasso-d6c3b12af8f5708f5969cb3d66dcd2e63fad1612.tar.gz
lasso-d6c3b12af8f5708f5969cb3d66dcd2e63fad1612.tar.xz
lasso-d6c3b12af8f5708f5969cb3d66dcd2e63fad1612.zip
logout
Diffstat (limited to 'php/Attic/examples/sample-sp/assertionConsumer.php')
-rw-r--r--php/Attic/examples/sample-sp/assertionConsumer.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/php/Attic/examples/sample-sp/assertionConsumer.php b/php/Attic/examples/sample-sp/assertionConsumer.php
index f5a1b8c4..7f19994a 100644
--- a/php/Attic/examples/sample-sp/assertionConsumer.php
+++ b/php/Attic/examples/sample-sp/assertionConsumer.php
@@ -50,9 +50,6 @@
$msg_url = lasso_profile_get_msg_url($profile);
$msg_body = lasso_profile_get_msg_body($profile);
- /*print "msg_url : " . $msg_url . "\n<br>";
- print "msg_body : " . $msg_body . "\n<br>"; */
-
$url = parse_url($msg_url);
$soap = sprintf(
@@ -80,9 +77,6 @@
lasso_login_process_response_msg($login, $body);
$nameidentifier = lasso_profile_get_nameidentifier($profile);
- // print "nameidentifier: " . $nameidentifier . "<br>\n";
-
-
# Look for the name_identifier in user db.
$options = array(
'debug' => 2,
@@ -100,6 +94,7 @@
if ($res->numRows() > 0)
{
+ // User already exist in the database
$row =& $res->fetchRow();
$user_id = $row[0];
@@ -119,11 +114,15 @@
lasso_login_accept_sso($login);
+ $session = lasso_profile_get_session($profile);
+ $session_dump = lasso_session_dump($session);
+
$_SESSION["nameidentifier"] = $nameidentifier;
$_SESSION["session_dump"] = $session_dump;
$_SESSION["user_id"] = $user_id;
- $url = "index.php";
+
+ $url = "index.php?SID=". $SID;
}
else
{
@@ -165,7 +164,7 @@
$_SESSION["session_dump"] = $session_dump;
$_SESSION["user_id"] = $user_id;
- $url = "register.php";
+ $url = "register.php?SID=". $SID;
}
// Update last_login