diff options
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: ?> |