diff options
| author | Christophe Nowicki <cnowicki@easter-eggs.com> | 2004-09-10 15:35:06 +0000 |
|---|---|---|
| committer | Christophe Nowicki <cnowicki@easter-eggs.com> | 2004-09-10 15:35:06 +0000 |
| commit | 19663b8864a6656f9baca0120276ff7607e1fedf (patch) | |
| tree | 4430b917de9ca0cd5c21fda599f4be47aaff0ef0 /php/Attic/examples/sample-sp/logout.php | |
| parent | 0abfa7d0c8bac90e291cf7664a0302aa286f716d (diff) | |
change header("Location $url\n\n") to header("Location $url\r\n\r\n")
Diffstat (limited to 'php/Attic/examples/sample-sp/logout.php')
| -rw-r--r-- | php/Attic/examples/sample-sp/logout.php | 11 |
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; ?> |
