Example usage for org.apache.shiro.web.session.mgt DefaultWebSessionManager setSessionIdCookieEnabled

List of usage examples for org.apache.shiro.web.session.mgt DefaultWebSessionManager setSessionIdCookieEnabled

Introduction

In this page you can find the example usage for org.apache.shiro.web.session.mgt DefaultWebSessionManager setSessionIdCookieEnabled.

Prototype

@SuppressWarnings({ "UnusedDeclaration" })
    public void setSessionIdCookieEnabled(boolean sessionIdCookieEnabled) 

Source Link

Usage

From source file:com.stormpath.shiro.spring.config.web.AbstractShiroWebConfiguration.java

License:Apache License

protected SessionManager sessionManager() {
    DefaultWebSessionManager webSessionManager = new DefaultWebSessionManager();
    webSessionManager.setSessionIdCookieEnabled(sessionIdCookieEnabled);
    webSessionManager.setSessionIdUrlRewritingEnabled(sessionIdUrlRewritingEnabled);
    return webSessionManager;
}