org.spincast.plugins.session.config.SpincastSessionConfigDefault Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-plugins-session Show documentation
Show all versions of spincast-plugins-session Show documentation
The default Spincast Session plugin
package org.spincast.plugins.session.config;
/**
* Default configurations for Spincast Session plugin.
*/
public class SpincastSessionConfigDefault implements SpincastSessionConfig {
@Override
public boolean isSessionPermanentByDefault() {
return false;
}
@Override
public int getDeleteOldSessionsScheduledTaskRunEveryNbrMinutes() {
return 30;
}
@Override
public int getSessionMaxInactiveMinutes() {
return 10080;
}
@Override
public String getSessionIdCookieName() {
return "spincast_sid";
}
@Override
public int getUpdateNotDirtySessionPeriodInSeconds() {
//==========================================
// By default, only update a not dirty session's
// modification date once every 5 minutes.
//==========================================
return 300;
}
@Override
public boolean isAutoAddSessionFilters() {
return true;
}
@Override
public String getDefaultCookieRepositoryCookieName() {
return "spincast_session";
}
@Override
public int getAutoAddedFilterBeforePosition() {
return -100;
}
@Override
public int getAutoAddedFilterAfterPosition() {
return 100;
}
}