created SHIRO-649:

             Summary: 内存介质更新Session时不起作用
                 Key: SHIRO-649
             Project: Shiro
          Issue Type: Bug
          Components: RememberMe
    Affects Versions: 1.4.0-RC2


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

Reply via email to