mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02:00
expire setup login after 20 minutes of idle time - cookies are reset on each page load
This commit is contained in:
parent
ce8be5f8d3
commit
900cc6eb52
@ -89,8 +89,7 @@
|
|||||||
6. None of the above
|
6. None of the above
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// $expire = time() + 1200; /* Expire login in 20 minutes. */
|
$expire = time() + 1200; /* Expire login if idle for 20 minutes. */
|
||||||
$expire = '';
|
|
||||||
|
|
||||||
if(!empty($HeaderLogin) && $auth_type == 'Header')
|
if(!empty($HeaderLogin) && $auth_type == 'Header')
|
||||||
{
|
{
|
||||||
@ -155,6 +154,9 @@
|
|||||||
/* Returning after login to config */
|
/* Returning after login to config */
|
||||||
if($ConfigPW == $GLOBALS['phpgw_domain'][$ConfigDomain]['config_passwd'])
|
if($ConfigPW == $GLOBALS['phpgw_domain'][$ConfigDomain]['config_passwd'])
|
||||||
{
|
{
|
||||||
|
setcookie('ConfigPW',"$ConfigPW","$expire");
|
||||||
|
setcookie('ConfigDomain',"$ConfigDomain","$expire");
|
||||||
|
setcookie('ConfigLang',"$ConfigLang","$expire");
|
||||||
return True;
|
return True;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -169,6 +171,7 @@
|
|||||||
/* Returning after login to header admin */
|
/* Returning after login to header admin */
|
||||||
if($HeaderPW == $GLOBALS['phpgw_info']['server']['header_admin_password'])
|
if($HeaderPW == $GLOBALS['phpgw_info']['server']['header_admin_password'])
|
||||||
{
|
{
|
||||||
|
setcookie('HeaderPW',"$HeaderPW","$expire");
|
||||||
return True;
|
return True;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user