protected void uncache(Session session) {
        if (session == null) {
            return;
        }
        Serializable id = session.getId();
        if (id == null) {
            return;
        }
        Cache<Serializable, Session> cache = getActiveSessionsCacheLazy();
        if (cache != null) {
            cache.remove(id);
        }
    }
Removes the specified Session from the cache.

@param session the session to remove from the cache.
core/src/main/java/org/apache/shiro/session/mgt/eis/CachingSessionDAO.java