All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.spincast.plugins.session.config.SpincastSessionConfigDefault Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy