From f57b0c9137ab8d5278715f2cedf34eabb14ee3d5 Mon Sep 17 00:00:00 2001 From: cookie Date: Fri, 10 Nov 2006 18:23:04 +0000 Subject: [PATCH] endloss schleife bei ip wecksel gefixt git-svn-id: svn://svn.cccv.de/engel-system@156 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/inc/header.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www-ssl/inc/header.php b/www-ssl/inc/header.php index 55ddbb24..47d50690 100755 --- a/www-ssl/inc/header.php +++ b/www-ssl/inc/header.php @@ -14,7 +14,8 @@ if( !isset($_SESSION['IP'])) if (IsSet($_SESSION['UID']) and ($_SESSION['IP'] <> $_SERVER['REMOTE_ADDR'])) { - header("Location: https://".$_SERVER['HTTP_HOST'].$ENGEL_ROOT); + session_destroy (); + header("Location: $url". substr($ENGEL_ROOT,1) ); } include ("./inc/UserCVS.php");