mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +01: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
|
||||
*/
|
||||
|
||||
// $expire = time() + 1200; /* Expire login in 20 minutes. */
|
||||
$expire = '';
|
||||
$expire = time() + 1200; /* Expire login if idle for 20 minutes. */
|
||||
|
||||
if(!empty($HeaderLogin) && $auth_type == 'Header')
|
||||
{
|
||||
@ -155,6 +154,9 @@
|
||||
/* Returning after login to config */
|
||||
if($ConfigPW == $GLOBALS['phpgw_domain'][$ConfigDomain]['config_passwd'])
|
||||
{
|
||||
setcookie('ConfigPW',"$ConfigPW","$expire");
|
||||
setcookie('ConfigDomain',"$ConfigDomain","$expire");
|
||||
setcookie('ConfigLang',"$ConfigLang","$expire");
|
||||
return True;
|
||||
}
|
||||
else
|
||||
@ -169,6 +171,7 @@
|
||||
/* Returning after login to header admin */
|
||||
if($HeaderPW == $GLOBALS['phpgw_info']['server']['header_admin_password'])
|
||||
{
|
||||
setcookie('HeaderPW',"$HeaderPW","$expire");
|
||||
return True;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user