From 4346d067890524e3273b2c993e6f2856a3a6fc10 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 7 Aug 2004 17:44:37 +0000 Subject: [PATCH] fix for bug [ 997669 ] Session Error with db-sessions --- phpgwapi/inc/class.sessions_db.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpgwapi/inc/class.sessions_db.inc.php b/phpgwapi/inc/class.sessions_db.inc.php index 0ee5eccfa4..725ec214c5 100644 --- a/phpgwapi/inc/class.sessions_db.inc.php +++ b/phpgwapi/inc/class.sessions_db.inc.php @@ -59,6 +59,8 @@ function register_session($login,$user_ip,$now,$session_flags) { + $GLOBALS['phpgw']->db->query("DELETE FROM phpgw_sessions WHERE session_id='$this->sessionsid'",__LINE__,__FILE__); + $GLOBALS['phpgw']->db->query("INSERT INTO phpgw_sessions VALUES ('" . $this->sessionid . "','".$login."','" . $user_ip . "','" . $now . "','" . $now . "','" . $_SERVER['PHP_SELF'] . "','" . $session_flags