changeset 5380:2320e8f36ac9

fix cookie_lifetime usage in config snippets
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 15 Dec 2009 06:15:01 +0100
parents a46c62d28c94
children 105451cabedb
files wiki/config/more_samples/auth_session_wikiconfig_snippet wiki/config/more_samples/ldap_wikiconfig_snippet
diffstat 2 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/wiki/config/more_samples/auth_session_wikiconfig_snippet	Tue Dec 15 04:23:03 2009 +0100
+++ b/wiki/config/more_samples/auth_session_wikiconfig_snippet	Tue Dec 15 06:15:01 2009 +0100
@@ -12,10 +12,8 @@
     # session cookie settings:
     #cookie_domain = None # use '.domain.tld" for a farm with hosts in that domain
     #cookie_path = None   # use '/wikifarm" for a farm with pathes below that path
-    #cookie_lifetime = 12 # 12 hours from now
-
-    # use this if you want sessions for anonymous users, too:
-    #anonymous_session_lifetime = 1 # default: disabled
+    #cookie_lifetime = (0, 12) # 0 -> no session for anon users (not logged in)
+                               # 12 -> 12h session lifetime for logged-in users
 
     # The default (ENABLED) password_checker will keep users from choosing too
     # short or too easy passwords. If you don't like this and your site has
--- a/wiki/config/more_samples/ldap_wikiconfig_snippet	Tue Dec 15 04:23:03 2009 +0100
+++ b/wiki/config/more_samples/ldap_wikiconfig_snippet	Tue Dec 15 06:15:01 2009 +0100
@@ -52,7 +52,7 @@
     auth = [ldap_authenticator1, ] # this is a list, you may have multiple ldap authenticators
                                    # as well as other authenticators
 
-    cookie_lifetime = 1 # 1 hour after last access ldap login is required again
+    cookie_lifetime = (0, 1) # no anon user sessions, 1h session lifetime for logged-in users
 
     # customize user preferences (optional, see MoinMoin/config/multiconfig for internal defaults)
     # you maybe want to use user_checkbox_remove, user_checkbox_defaults, user_form_defaults,