summaryrefslogtreecommitdiffstats
path: root/php/Attic/examples/sample-sp/logout.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/Attic/examples/sample-sp/logout.php')
-rw-r--r--php/Attic/examples/sample-sp/logout.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/php/Attic/examples/sample-sp/logout.php b/php/Attic/examples/sample-sp/logout.php
index fedae253..82a283f7 100644
--- a/php/Attic/examples/sample-sp/logout.php
+++ b/php/Attic/examples/sample-sp/logout.php
@@ -22,14 +22,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
- $config = unserialize(file_get_contents('config.inc'));
+ $config = unserialize(file_get_contents('config.inc'));
- require_once 'DB.php';
+ require_once 'DB.php';
- if (!empty($_GET['SID']))
- session_start($_GET['SID']);
- else
- session_start();
+ session_start();
if (!isset($_SESSION["nameidentifier"])) {
print "User is not logged in";
@@ -124,6 +121,6 @@
header("Request-URI: $url");
header("Content-Location: $url");
- header("Location: $url\n\n");
+ header("Location: $url\r\n\r\n");
exit;
?>