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/register.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/register.php')
| -rw-r--r-- | php/Attic/examples/sample-sp/register.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/php/Attic/examples/sample-sp/register.php b/php/Attic/examples/sample-sp/register.php index 317c3460..6c1b0152 100644 --- a/php/Attic/examples/sample-sp/register.php +++ b/php/Attic/examples/sample-sp/register.php @@ -25,11 +25,7 @@ $config = unserialize(file_get_contents('config.inc')); 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"; @@ -55,7 +51,7 @@ $url = "index.php"; header("Request-URI: $url"); header("Content-Location: $url"); - header("Location: $url\n\n"); + header("Location: $url\r\n\r\n"); exit(); default: ?> |
