forked from extern/egroupware
"- do not send session data for clients doing no sessions to memcached
- use 10min session lifetime for GroupDAV as for anonymous sessions"
This commit is contained in:
parent
1ffcad251a
commit
68d6f0fe69
@ -137,8 +137,13 @@ class egw_session_memcache
|
|||||||
{
|
{
|
||||||
$lifetime = (int)ini_get('session.gc_maxlifetime');
|
$lifetime = (int)ini_get('session.gc_maxlifetime');
|
||||||
|
|
||||||
|
if ($id == 'no-session')
|
||||||
|
{
|
||||||
|
return true; // no need to save
|
||||||
|
}
|
||||||
// give anon sessions only a lifetime of 10min
|
// give anon sessions only a lifetime of 10min
|
||||||
if (is_object($GLOBALS['egw']->session) && $GLOBALS['egw']->session->session_flags == 'A')
|
if (is_object($GLOBALS['egw']->session) && $GLOBALS['egw']->session->session_flags == 'A' ||
|
||||||
|
$GLOBALS['egw_info']['flags']['currentapp'] == 'groupdav')
|
||||||
{
|
{
|
||||||
$lifetime = 600;
|
$lifetime = 600;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user