[
https://issues.apache.org/jira/browse/SHIRO-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16545426#comment-16545426
]
Brian Demers commented on SHIRO-649:
------------------------------------
[~bingjjfly] Thanks for reporting a ticket, but can you translate the subject
of this issue into English, please?
> 内存介质更新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
> Priority: Major
> Original Estimate: 72h
> Remaining Estimate: 72h
>
> 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)