Annotation Type SessionConfig


@Retention(CLASS) @Target(TYPE) public @interface 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 Elements
    Modifier and Type
    Optional Element
    Description
    cn1.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, Strict or None.
    cn1.session.secure: auto, true or false.
    cn1.session.store: memory or db.
    int
    cn1.session.timeout: seconds of inactivity before a session ends, 0 for never.
  • Element Details

    • store

      String store
      cn1.session.store: memory or db.
      Default:
      ""
    • timeoutSeconds

      int timeoutSeconds
      cn1.session.timeout: seconds of inactivity before a session ends, 0 for never.
      Default:
      -1
    • cookie

      String cookie
      cn1.session.cookie: the cookie's name.
      Default:
      ""
    • sameSite

      String sameSite
      cn1.session.same-site: Lax, Strict or None.
      Default:
      ""
    • secure

      String secure
      cn1.session.secure: auto, true or false.
      Default:
      ""
    • namespace

      String namespace
      cn1.session.namespace: the prefix that separates this server's sessions in a shared store.
      Default:
      ""