mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 06:01:36 +01:00
destroy the session if window get closed
This commit is contained in:
parent
1d492f8078
commit
24319f7ad1
@ -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()
|
function destroy()
|
||||||
{
|
{
|
||||||
Gtk::main_quit();
|
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)
|
function button_clicked(&$var,$form_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user