destroy the session if window get closed

This commit is contained in:
Ralf Becker 2002-06-07 21:56:34 +00:00
parent 1d492f8078
commit 24319f7ad1

View File

@ -170,11 +170,13 @@
}
/*
* 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();
$GLOBALS['phpgw']->session->destroy($GLOBALS['phpgw_info']['user']['sessionid'],$GLOBALS['phpgw_info']['user']['kp3']);
$GLOBALS['phpgw']->common->phpgw_exit();
exit();
}