Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-649

内存介质更新Session时不起作用

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.0-RC2
    • None
    • RememberMe
    • None

    Description

      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时不起作用

      Attachments

        Activity

          People

            Unassigned Unassigned
            bingjjfly bing.jj.fly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 72h
                72h
                Remaining:
                Remaining Estimate - 72h
                72h
                Logged:
                Time Spent - Not Specified
                Not Specified