From 393a9924dddd873175ad520c0420ffa3597837ed Mon Sep 17 00:00:00 2001 From: jengo Date: Sun, 1 Jul 2001 22:26:47 +0000 Subject: [PATCH] If the menuaction variable is present, it will now add that for the session_action, this is meant for the 3 teir design --- phpgwapi/inc/class.sessions.inc.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.sessions.inc.php b/phpgwapi/inc/class.sessions.inc.php index 825e486af0..c4feb1f4af 100644 --- a/phpgwapi/inc/class.sessions.inc.php +++ b/phpgwapi/inc/class.sessions.inc.php @@ -285,9 +285,18 @@ // This will update the DateLastActive column, so the login does not expire function update_dla() { - global $phpgw_info, $phpgw, $PHP_SELF; + global $phpgw_info, $phpgw, $PHP_SELF, $menuaction; - $phpgw->db->query("update phpgw_sessions set session_dla='" . time() . "', session_action='$PHP_SELF' " + if ($menuaction) + { + $action = $menuaction; + } + else + { + $action = $PHP_SELF; + } + + $phpgw->db->query("update phpgw_sessions set session_dla='" . time() . "', session_action='$action' " . "where session_id='" . $this->sessionid."'",__LINE__,__FILE__); $phpgw->db->query("update phpgw_app_sessions set session_dla='" . time() . "' "