1. 概述

  本文介绍如何配置用户会话上限数,或者说单个账号同时登陆的次数限制。

2. 配置方法

配置文件所在路径:

    dataviz-service/WEB-INF/conf/spring/applicationContext-security.xml

如下配置项中的maximumSessions,修改value对应的数值即可。

    <!-- SESSION并发配置 -->
    <beans:bean id="concurrentSessionControlStrategy"
        class="org.springframework.security.web.authentication.session.ConcurrentSessionControlAuthenticationStrategy">
        <beans:constructor-arg name="sessionRegistry"
            ref="sessionRegistry" />
        <beans:property name="maximumSessions" value="50" />
        <beans:property name="exceptionIfMaximumExceeded"
            value="true" />
    </beans:bean>

results matching ""

    No results matching ""

    results matching ""

      No results matching ""