diff options
| author | Christophe Nowicki <cnowicki@easter-eggs.com> | 2004-08-18 15:49:49 +0000 |
|---|---|---|
| committer | Christophe Nowicki <cnowicki@easter-eggs.com> | 2004-08-18 15:49:49 +0000 |
| commit | 0950f7558cc378dad1493713278e392562b221f0 (patch) | |
| tree | 879d77f6882aea0d0c1a057f256a7900151429d4 /php/Attic/examples/sample-sp/assertionConsumer.php | |
| parent | 1a599c2608fd2b337993c39a9d378a176b7077e0 (diff) | |
| download | lasso-0950f7558cc378dad1493713278e392562b221f0.tar.gz lasso-0950f7558cc378dad1493713278e392562b221f0.tar.xz lasso-0950f7558cc378dad1493713278e392562b221f0.zip | |
Rename install.php to setup.php
Diffstat (limited to 'php/Attic/examples/sample-sp/assertionConsumer.php')
| -rw-r--r-- | php/Attic/examples/sample-sp/assertionConsumer.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/php/Attic/examples/sample-sp/assertionConsumer.php b/php/Attic/examples/sample-sp/assertionConsumer.php index a84cb847..f5a1b8c4 100644 --- a/php/Attic/examples/sample-sp/assertionConsumer.php +++ b/php/Attic/examples/sample-sp/assertionConsumer.php @@ -102,7 +102,6 @@ { $row =& $res->fetchRow(); $user_id = $row[0]; - // print "user id : " . $user_id . "<br>\n"; # Get Identity Dump from the data base $query = "SELECT identity_dump FROM users WHERE user_id='$user_id'"; @@ -119,6 +118,12 @@ $res->free(); lasso_login_accept_sso($login); + + $_SESSION["nameidentifier"] = $nameidentifier; + $_SESSION["session_dump"] = $session_dump; + $_SESSION["user_id"] = $user_id; + + $url = "index.php"; } else { @@ -162,6 +167,12 @@ $url = "register.php"; } + + // Update last_login + $query = "UPDATE users SET last_login=NOW() WHERE user_id='$user_id'"; + $res =& $db->query($query); + if (DB::isError($res)) + print $res->getMessage(). "\n"; $db->disconnect(); |
