diff --git a/management/univention-management-console-frontend/univention-management-console-web-server b/management/univention-management-console-frontend/univention-management-console-web-server index 5897064..f1e659a 100755 --- a/management/univention-management-console-frontend/univention-management-console-web-server +++ b/management/univention-management-console-frontend/univention-management-console-web-server @@ -672,10 +672,7 @@ class Ressource(object): # set the cookie once during successful authentication # force expiration of cookie in 5 years from now on... # IE does not support max-age - expires = kwargs.get('expires') - if expires is None: - expires = datetime.datetime.now() - expires = expires.replace(year=expires.year + 4) + expires = kwargs.get('expires') or (datetime.datetime.now() + datetime.timedelta(days=5*365)) cookie = cherrypy.response.cookie for name, value in cookies: name = self.suffixed_cookie_name(name)