public class SpincastSessionConfigDefault extends Object implements SpincastSessionConfig
| Constructor and Description |
|---|
SpincastSessionConfigDefault() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDeleteOldSessionsCronRunEveryNbrMinutes()
The cron 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()
If
#autoRegisterCronJobToDeleteOldSessions() is
enabled, this is 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.
|
public int getDeleteOldSessionsCronRunEveryNbrMinutes()
SpincastSessionConfiggetDeleteOldSessionsCronRunEveryNbrMinutes in interface SpincastSessionConfigpublic int getSessionMaxInactiveMinutes()
SpincastSessionConfig#autoRegisterCronJobToDeleteOldSessions() is
enabled, this is the number of minutes before
an inactive session is deleted.
Defaults 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 SpincastSessionConfigCopyright © 2018. All rights reserved.