bing.jj.fly created SHIRO-649:
---------------------------------

             Summary: 内存介质更新Session时不起作用
                 Key: SHIRO-649
                 URL: https://issues.apache.org/jira/browse/SHIRO-649
             Project: Shiro
          Issue Type: Bug
          Components: RememberMe
    Affects Versions: 1.4.0-RC2
            Reporter: bing.jj.fly


MemorySessionDAO

private ConcurrentMap<Serializable, Session> sessions;

public MemorySessionDAO() {
        this.sessions = new ConcurrentHashMap<Serializable, Session>();
}

protected Session storeSession(Serializable id, Session session) {
        if (id == null) {
                throw new NullPointerException("id argument cannot be null.");
        }
        return sessions.putIfAbsent(id, session);
}

sessions.putIfAbsent(id, session)不存在的时候才会put值,当更新Session时不起作用



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to