summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/perm.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-11 10:03:32 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-11 10:03:32 +0000
commite6e07c8326c0082b8edf4924c166aaadbd99cdef (patch)
treea0ea4db63f8f6cb16e015c6ee8a3829a7430216a /frontends/php/include/perm.inc.php
parentd977bea9e417e2272264157e5db82d79fbbc10f4 (diff)
downloadzabbix-e6e07c8326c0082b8edf4924c166aaadbd99cdef.tar.gz
zabbix-e6e07c8326c0082b8edf4924c166aaadbd99cdef.tar.xz
zabbix-e6e07c8326c0082b8edf4924c166aaadbd99cdef.zip
- improved installation wizard with permissions (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3584 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/perm.inc.php')
-rw-r--r--frontends/php/include/perm.inc.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/frontends/php/include/perm.inc.php b/frontends/php/include/perm.inc.php
index 2fafe178..d82bfc66 100644
--- a/frontends/php/include/perm.inc.php
+++ b/frontends/php/include/perm.inc.php
@@ -47,7 +47,6 @@
global $ZBX_LOCALNODEID;
$USER_DETAILS = NULL;
-
if(isset($_COOKIE["sessionid"]))
{
$sessionid = $_COOKIE["sessionid"];
@@ -65,7 +64,7 @@
}
else
{
- zbx_setcookie("sessionid",$sessionid);
+ setcookie("sessionid",$sessionid,time()+3600); /* NOTE: don't use zbx_setcookie */
DBexecute("update sessions set lastaccess=".time()." where sessionid=".zbx_dbstr($sessionid));
}
}