Commit 3502357b authored by Christophe Dumez's avatar Christophe Dumez

- reduced cookies lifetime to 1 day (instead of 7)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7366 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1ebb2e84
...@@ -506,7 +506,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder): ...@@ -506,7 +506,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
response = request.RESPONSE response = request.RESPONSE
login_list.append(self._encodeLogin(realm, user, password)) login_list.append(self._encodeLogin(realm, user, password))
value = ','.join(login_list) value = ','.join(login_list)
expires = (DateTime() + 7).toZone('GMT').rfc822() expires = (DateTime() + 1).toZone('GMT').rfc822()
request.set(self.login_cookie_name, value) request.set(self.login_cookie_name, value)
response.setCookie(self.login_cookie_name, value, path = '/', expires = expires) response.setCookie(self.login_cookie_name, value, path = '/', expires = expires)
...@@ -594,7 +594,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder): ...@@ -594,7 +594,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
response = request.RESPONSE response = request.RESPONSE
trust_list.append(self._encodeSSLTrust(trust_dict, permanent)) trust_list.append(self._encodeSSLTrust(trust_dict, permanent))
value = ','.join(trust_list) value = ','.join(trust_list)
expires = (DateTime() + 7).toZone('GMT').rfc822() expires = (DateTime() + 1).toZone('GMT').rfc822()
request.set(self.ssl_trust_cookie_name, value) request.set(self.ssl_trust_cookie_name, value)
response.setCookie(self.ssl_trust_cookie_name, value, path = '/', expires = expires) response.setCookie(self.ssl_trust_cookie_name, value, path = '/', expires = expires)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment