mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-31 02:21:28 +01:00
destroy the session if window get closed
This commit is contained in:
parent
1d492f8078
commit
24319f7ad1
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user