Removes the user from the map. This method shell be invoked when the session is unbounded
from the Application. In wicket is the best way to do that in the
{@code WebApplication#sessionUnbound(String)}.

@param user
the user
@return the session id
12231
public synchronized ID removeOnline(final USER user)
	{
		final ID sessionId = usersOnline.remove(user);
		if (sessionId != null)
		{
			sessionIdToUser.remove(sessionId);
		}
		return sessionId;
	}
341176
public User get(int id) {
        Connection conn = null;
        User user = null;
        try {
            conn = ConnectionUtils.getConnection();
            user = userDAO.get(conn,id);
        } catch(SQLException e) {
            logger.error(e.getMessage());
        } finally {
            DbUtils.closeQuietly(conn);
        }
        return user;
    }
1166641
public void deleteUser(Integer targetUserId) throws IOException {
        String tailUrl = GitlabUser.USERS_URL + "/" + targetUserId;
        retrieve().method(DELETE).to(tailUrl, Void.class);
    }
171445
public void remove(String user) {
		Object o = userMap.remove(user);
		if(o!=null) {
			access.log(Level.INFO, user,"removed from Client Cache by Request");
		}
	}
4350
private CmsSessionInfo getSessionForUser(CmsUser user) {

        List<CmsSessionInfo> sessions = OpenCms.getSessionManager().getSessionInfos(user.getId());

        if (sessions.isEmpty()) {
            return null;
        }

        CmsSessionInfo currentSession = sessions.get(0);
        for (CmsSessionInfo session : sessions) {
            if (session.getTimeUpdated() > currentSession.getTimeUpdated()) {
                currentSession = session;
            }
        }
        return currentSession;
    }
311808
public String unsetUser(String uid, List<String> properties)
      throws ExecutionException, InterruptedException, IOException {
    return unsetUser(uid, properties, new DateTime());
  }
555982
public QYResultType delete(String userId){
        BeanUtil.requireNonNull(userId, "userId is null");
        String url = BASE_API_URL + "cgi-bin/user/delete?access_token=#&userid=" + userId;
        BaseResponse response = executeGet(url);
        return QYResultType.get(response.getErrcode());
    }
1232533
public String getValue(CmsUser user) {

        String value = null;
        if (isAdditionalInfo()) {
            value = (String)user.getAdditionalInfo(getAddInfoKey());
        } else {
            try {
                PropertyUtilsBean propUtils = new PropertyUtilsBean();
                value = (String)propUtils.getProperty(user, getField().name());
            } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
                LOG.error("Error reading account info field.", e);
            }
        }
        return value;
    }
1111660
public Response lockoutUser(String username) {
		return restClient.post("lockouts/" + username, null, new HashMap<String, String>());
	}
597763
@Override
    public Session delete(String id) throws Exception {
        // get the session, if its not in memory, this will load it
        Session session = get(id);

        // Always delete it from the backing data store
        if (sessionDataStore != null) {
            boolean deleted = sessionDataStore.delete(id);
            if (log.isDebugEnabled()) {
                log.debug("Session " + id + " deleted in db: " + deleted);
            }
        }

        // delete it from the session object store
        if (session != null) {
            session.stopInactivityTimer();
            session.setResident(false);
        }

        return doDelete(id);
    }
527598
protected Integer getUserId() {
        Integer userId = ThreadContext.getContext(UserWebConstant.CTX_USERID);
        if (userId != null) {
            return userId;
        }
        return null;
    }
42804
@Override
	public User getCurrentUser() {
		HttpSession session = getRequest().getSession(false);

		if (session == null)
			return null;

		return (User) session.getAttribute(SESSION_ATTR_USER);
	}
774093
@Override
    public void deleteUser(String username) throws AuthenticationException {
        String user = file_store.getProperty(username);
        if (user == null) {
            throw new AuthenticationException("User '" + username
                    + "' not found.");
        }
        file_store.remove(username);
        try {
            saveUsers();
        } catch (IOException e) {
            throw new AuthenticationException("Error deleting user: ", e);
        }
    }
34067
public synchronized ID addOnline(final USER user, final ID sessionId)
	{
		sessionIdToUser.put(sessionId, user);
		return usersOnline.put(user, sessionId);
	}
1049685
def deactivate_user(self, user):
        
        res = super(SessionAwareSQLAlchemyUserDatastore, self).deactivate_user(
            user)
        if res:
            delete_user_sessions(user)
        return res
305076
public String deleteUser(String uid)
      throws ExecutionException, InterruptedException, IOException {
    return deleteUser(uid, new DateTime());
  }
780685
public void remove(final boolean removeFromSession) {
        if (removeFromSession) {
            this.sessionStore.set(this.context, Pac4jConstants.USER_PROFILES, new LinkedHashMap<String, U>());
        }
        this.context.setRequestAttribute(Pac4jConstants.USER_PROFILES, new LinkedHashMap<String, U>());
    }