mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 19:03:14 +01:00
"Fix for bug #1992 from Hans-Juergen Tappe:
The sitemgr login module does not cleanup session."
This commit is contained in:
parent
755c9103f6
commit
b5c8df2015
13
login.php
13
login.php
@ -34,6 +34,19 @@ else
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Destroy any existing anonymous session.
|
||||||
|
* Copied from logout.php. Maybe make it a common function?
|
||||||
|
*/
|
||||||
|
if(isset($GLOBALS['sitemgr_info']) && $GLOBALS['egw_info']['user']['userid'] == $GLOBALS['sitemgr_info']['anonymous_user'])
|
||||||
|
{
|
||||||
|
if($GLOBALS['egw']->session->verify())
|
||||||
|
{
|
||||||
|
$GLOBALS['egw']->hooks->process('logout');
|
||||||
|
$GLOBALS['egw']->session->destroy($GLOBALS['sessionid'],$GLOBALS['kp3']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// CAS :
|
// CAS :
|
||||||
if($GLOBALS['egw_info']['server']['auth_type'] == 'cas')
|
if($GLOBALS['egw_info']['server']['auth_type'] == 'cas')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user