public.javadoc.org.spincast.plugins.session.config.SpincastSessionConfigDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastSessionConfigDefault (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.session.config
Class SpincastSessionConfigDefault
- java.lang.Object
-
- org.spincast.plugins.session.config.SpincastSessionConfigDefault
-
- All Implemented Interfaces:
- SpincastSessionConfig
public class SpincastSessionConfigDefault
extends Object
implements SpincastSessionConfig
Default configurations for Spincast Session plugin.
-
-
Constructor Summary
Constructors
Constructor and Description
SpincastSessionConfigDefault()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
int
getDeleteOldSessionsScheduledTaskRunEveryNbrMinutes()
The acheduled task to delete old sessions should run
every X minutes.
String
getSessionIdCookieName()
The name of the cookie used to store the
Session id, by default.
int
getSessionMaxInactiveMinutes()
The number of minutes before
an inactive session is deleted.
int
getUpdateNotDirtySessionPeriodInSeconds()
The number of seconds between two updates of the
modification date of a session, wheen the session
is not dirty.
boolean
isSessionPermanentByDefault()
When a cookie is automatically added to a
visitor, should it be permanent (10 years)?
Otherwise, it will be browser-session long
only (the default).
-
-
Method Detail
-
isSessionPermanentByDefault
public boolean isSessionPermanentByDefault()
Description copied from interface: SpincastSessionConfig
When a cookie is automatically added to a
visitor, should it be permanent (10 years)?
Otherwise, it will be browser-session long
only (the default).
- Specified by:
isSessionPermanentByDefault
in interface SpincastSessionConfig
-
getDeleteOldSessionsScheduledTaskRunEveryNbrMinutes
public int getDeleteOldSessionsScheduledTaskRunEveryNbrMinutes()
Description copied from interface: SpincastSessionConfig
The acheduled task to delete old sessions should run
every X minutes.
- Specified by:
getDeleteOldSessionsScheduledTaskRunEveryNbrMinutes
in interface SpincastSessionConfig
-
getSessionMaxInactiveMinutes
public int getSessionMaxInactiveMinutes()
Description copied from interface: SpincastSessionConfig
The number of minutes before
an inactive session is deleted.
Defaults to 7 days.
- Specified by:
getSessionMaxInactiveMinutes
in interface SpincastSessionConfig
-
getSessionIdCookieName
public String getSessionIdCookieName()
Description copied from interface: SpincastSessionConfig
The name of the cookie used to store the
Session id, by default.
- Specified by:
getSessionIdCookieName
in interface SpincastSessionConfig
-
getUpdateNotDirtySessionPeriodInSeconds
public int getUpdateNotDirtySessionPeriodInSeconds()
Description copied from interface: SpincastSessionConfig
The number of seconds between two updates of the
modification date of a session, wheen the session
is not dirty.
This value must be less than
SpincastSessionConfig.getSessionMaxInactiveMinutes()
or active
sessions will be deleted!
Note that when something changes on the session
the session becomes dirty and is always
saved and an updated modification date.
- Specified by:
getUpdateNotDirtySessionPeriodInSeconds
in interface SpincastSessionConfig
Copyright © 2019. All rights reserved.