summaryrefslogtreecommitdiffstats
path: root/frontends/php/index.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-22 09:48:19 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-22 09:48:19 +0000
commit6fe8d2457fa96e4eff0f67379b7def24c8d47664 (patch)
treeabbc80d8f0abdee02cb270ab450fa91214f8a864 /frontends/php/index.php
parent0fe7cbe5d251a09ff32a32ea0ce2792b9884bffe (diff)
downloadzabbix-6fe8d2457fa96e4eff0f67379b7def24c8d47664.tar.gz
zabbix-6fe8d2457fa96e4eff0f67379b7def24c8d47664.tar.xz
zabbix-6fe8d2457fa96e4eff0f67379b7def24c8d47664.zip
- fixed authorisation (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2870 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/index.php')
-rw-r--r--frontends/php/index.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/frontends/php/index.php b/frontends/php/index.php
index 06a5dc2b..8916ff07 100644
--- a/frontends/php/index.php
+++ b/frontends/php/index.php
@@ -39,20 +39,11 @@
check_fields($fields);
?>
<?php
-
- if(isset($_COOKIE["sessionid"]))
- {
- $sessionid=$_COOKIE["sessionid"];
- }
- else
- unset($sessionid);
-
- if(isset($_REQUEST["reconnect"]) && isset($sessionid))
+ if(isset($_REQUEST["reconnect"]) && isset($_COOKIE["sessionid"]))
{
DBexecute("delete from sessions where sessionid=".zbx_dbstr($sessionid));
setcookie("sessionid",$sessionid,time()-3600);
unset($_COOKIE["sessionid"]);
- unset($sessionid);
}
if(isset($_REQUEST["enter"])&&($_REQUEST["enter"]=="Enter"))