From 24319f7ad1d33954817595fc2487c283af78f959 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 7 Jun 2002 21:56:34 +0000 Subject: [PATCH] destroy the session if window get closed --- etemplate/inc/class.uietemplate_gtk.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.uietemplate_gtk.inc.php b/etemplate/inc/class.uietemplate_gtk.inc.php index 802513d9b5..1f6f2eed0b 100644 --- a/etemplate/inc/class.uietemplate_gtk.inc.php +++ b/etemplate/inc/class.uietemplate_gtk.inc.php @@ -170,12 +170,14 @@ } /* - * Called when the window is being destroyed. Simply quit the main loop. + * Called when the window is being destroyed: destroy the session and let phpgw_exit close the db-connection */ function destroy() { Gtk::main_quit(); - exit(); + $GLOBALS['phpgw']->session->destroy($GLOBALS['phpgw_info']['user']['sessionid'],$GLOBALS['phpgw_info']['user']['kp3']); + $GLOBALS['phpgw']->common->phpgw_exit(); + exit(); } function button_clicked(&$var,$form_name)