Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Configuration > sessioncontainer

sessioncontainer

Session container creates and manages sessions. Many "applications" can share the same session container. Session preference controls how sessions are used.

See the anvil.session package.

Attributes
name default description
checkout 30 Session checkout frequency, in seconds. After the specified time interval, all sessions are scanned and determined if they are still valid, that is, their lifetime or timeout has not been exceeded.
idlength 20 Length of session identifier. The identifier is case-sensitive and contains alphanumeric characters.
provider reference Classname of provider. Provider must implement the interface anvil.session.SessionContainer. See Providers.
* * Any attributes required by the custom provider.

Example:
  #
  # server side
  #
  sessioncontainer:
    checkout = 30
    idlength = 30
    provider = anvil.server.net.ServerSessionContainer
    allow = 127.0.0.1
    port = 9099
    maxthreads = 10
    maxtasks = 20
  end


  #
  # client side
  #
  sessioncontainer:
    checkout = 30
    idlength = 30
    provider = anvil.server.net.ClientSessionContainer
    host = servercontainer.domain.com
    port = 9099
  end
See also  | Configuration  | session  | Providers  | ServerSessionContainer
Contributes notes:
Add a note
What's new | Anvil