Annotation Type SessionConfig
Session settings, compiled in.
Each attribute is the cn1.session.* key named beside it, and sets that key's
value at the bottom of the configuration: application.properties, a
profile's file or the environment still change it without a rebuild. An
attribute left at its default sets nothing.
@SessionConfig(store = "db", timeoutSeconds = 3600)
public class Settings { }
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptioncn1.session.cookie: the cookie's name.cn1.session.namespace: the prefix that separates this server's sessions in a shared store.cn1.session.same-site:Lax,StrictorNone.cn1.session.secure:auto,trueorfalse.cn1.session.store:memoryordb.intcn1.session.timeout: seconds of inactivity before a session ends, 0 for never.
-
Element Details
-
store
-
timeoutSeconds
int timeoutSecondscn1.session.timeout: seconds of inactivity before a session ends, 0 for never.- Default:
-1
-
cookie
-
sameSite
-
secure
-
namespace
String namespacecn1.session.namespace: the prefix that separates this server's sessions in a shared store.- Default:
""
-