summaryrefslogtreecommitdiffstats
path: root/php/Attic/examples/sample-sp
diff options
context:
space:
mode:
authorChristophe Nowicki <cnowicki@easter-eggs.com>2004-09-13 12:32:31 +0000
committerChristophe Nowicki <cnowicki@easter-eggs.com>2004-09-13 12:32:31 +0000
commit8976ed87f59de26aa31ce8bc471d49614bfbe008 (patch)
treeef43a154a5a669695f5ffa5ca8a947de5ee2eac1 /php/Attic/examples/sample-sp
parent19663b8864a6656f9baca0120276ff7607e1fedf (diff)
downloadlasso-8976ed87f59de26aa31ce8bc471d49614bfbe008.tar.gz
lasso-8976ed87f59de26aa31ce8bc471d49614bfbe008.tar.xz
lasso-8976ed87f59de26aa31ce8bc471d49614bfbe008.zip
split source code of singleSignOn.php in many functions
added support for http basic authentification remove useless "?SID=" values
Diffstat (limited to 'php/Attic/examples/sample-sp')
-rw-r--r--php/Attic/examples/sample-sp/assertionConsumer.php4
-rw-r--r--php/Attic/examples/sample-sp/index.php7
2 files changed, 4 insertions, 7 deletions
diff --git a/php/Attic/examples/sample-sp/assertionConsumer.php b/php/Attic/examples/sample-sp/assertionConsumer.php
index 1413fd59..5de00e98 100644
--- a/php/Attic/examples/sample-sp/assertionConsumer.php
+++ b/php/Attic/examples/sample-sp/assertionConsumer.php
@@ -128,7 +128,7 @@
$_SESSION["session_dump"] = $session->dump();
$_SESSION["user_id"] = $user_id;
- $url = "index.php?SID=". $SID;
+ $url = "index.php";
}
else
{
@@ -166,7 +166,7 @@
$_SESSION["session_dump"] = $session->dump();
$_SESSION["user_id"] = $user_id;
- $url = "register.php?SID=". $SID;
+ $url = "register.php";
}
// Update last_login
diff --git a/php/Attic/examples/sample-sp/index.php b/php/Attic/examples/sample-sp/index.php
index c7b2d39b..700198f4 100644
--- a/php/Attic/examples/sample-sp/index.php
+++ b/php/Attic/examples/sample-sp/index.php
@@ -52,10 +52,7 @@ You can get more informations about <b>Lasso</b> at <br>
require_once 'DB.php';
- if (!empty($_GET['SID']))
- session_start($_GET['SID']);
- else
- session_start();
+ session_start();
lasso_init();
@@ -90,7 +87,7 @@ You can get more informations about <b>Lasso</b> at <br>
</tr>
<?php } else { ?>
<tr>
- <td><a href="logout.php?SID=<?php echo $SID ?>">Logout!</a></td>
+ <td><a href="logout.php">Logout!</a></td>
</tr>
<?php } ?>
</table>