services/src/main/java/org/keycloak/services/resources/admin/RealmAdminResource.java
/**
     * Remove a specific user session. Any client that has an admin url will also be told to invalidate this
     * particular session.
     *
     * @param sessionId
     */
Remove a specific user session. Any client that has an admin url will also be told to invalidate this
particular session.

@param sessionId
Remove a specific user session . Any client that has an admin url will also be told to invalidate this particular session . @param sessionId
@Path("sessions/{session}")
    @DELETE
    public void deleteSession(@PathParam("session") String sessionId) {
        UserSessionModel userSession = session.sessions().getUserSession(realm, sessionId);
        if (userSession == null) throw new NotFoundException("Sesssion not found");
        AuthenticationManager.backchannelLogout(session, realm, userSession, uriInfo, connection, headers, true);
        adminEvent.operation(OperationType.DELETE).resourcePath(uriInfo).success();
    }
@ Path ( "sessions/{session}" ) @ DELETE public void deleteSession ( @ PathParam ( "session" ) String sessionId ) { UserSessionModel userSession = session . sessions ( ) . getUserSession ( realm , sessionId ) ; if ( userSession == null ) throw new NotFoundException ( "Sesssion not found" ) ; AuthenticationManager . backchannelLogout ( session , realm , userSession , uriInfo , connection , headers , true ) ; adminEvent . operation ( OperationType . DELETE ) . resourcePath ( uriInfo ) . success ( ) ; }
Remove a specific user session.
Remove a specific user session .