[web] Fix expiry of anonymous sessions (closes #4154479) [applied]