diff options
-rw-r--r-- | frontends/php/include/perm.inc.php | 3 | ||||
-rw-r--r-- | frontends/php/index.php | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/frontends/php/include/perm.inc.php b/frontends/php/include/perm.inc.php index bb98a3f7..9d8a91df 100644 --- a/frontends/php/include/perm.inc.php +++ b/frontends/php/include/perm.inc.php @@ -57,9 +57,6 @@ define("GROUP_RIGHT", 0); exit; } } else { - setcookie("sessionid",$sessionid,time()-3600); - unset($sessionid); - unset($_COOKIE["sessionid"]); $USER_DETAILS = DBfetch(DBselect("select u.* from users u where u.alias='guest'")); } diff --git a/frontends/php/index.php b/frontends/php/index.php index 8916ff07..46d09532 100644 --- a/frontends/php/index.php +++ b/frontends/php/index.php @@ -41,8 +41,8 @@ <?php if(isset($_REQUEST["reconnect"]) && isset($_COOKIE["sessionid"])) { - DBexecute("delete from sessions where sessionid=".zbx_dbstr($sessionid)); - setcookie("sessionid",$sessionid,time()-3600); + DBexecute("delete from sessions where sessionid=".zbx_dbstr($_COOKIE["sessionid"])); + setcookie("sessionid",$_COOKIE["sessionid"],time()-3600); unset($_COOKIE["sessionid"]); } |