public class SpincastSessionConfigDefault extends Object implements SpincastSessionConfig
| Constructor and Description |
|---|
SpincastSessionConfigDefault() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultCookieRepositoryCookieName()
When the default
SpincastSessionRepository repository
is used (we suggest you bind a custom one, based on a database though!),
this will be the name of the cookie used to saved the session, on the client. |
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).
|
public boolean isSessionPermanentByDefault()
SpincastSessionConfigisSessionPermanentByDefault in interface SpincastSessionConfigpublic int getDeleteOldSessionsScheduledTaskRunEveryNbrMinutes()
SpincastSessionConfiggetDeleteOldSessionsScheduledTaskRunEveryNbrMinutes in interface SpincastSessionConfigpublic int getSessionMaxInactiveMinutes()
SpincastSessionConfigDefaults to 7 days.
getSessionMaxInactiveMinutes in interface SpincastSessionConfigpublic String getSessionIdCookieName()
SpincastSessionConfiggetSessionIdCookieName in interface SpincastSessionConfigpublic int getUpdateNotDirtySessionPeriodInSeconds()
SpincastSessionConfig
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.
getUpdateNotDirtySessionPeriodInSeconds in interface SpincastSessionConfigpublic String getDefaultCookieRepositoryCookieName()
SpincastSessionConfigSpincastSessionRepository repository
is used (we suggest you bind a custom one, based on a database though!),
this will be the name of the cookie used to saved the session, on the client.getDefaultCookieRepositoryCookieName in interface SpincastSessionConfigCopyright © 2019. All rights reserved.