MENU
      Expire user session

        Expire user session


        Article summary

        Available in Classic and VPC

        Expire an active session of a user.

        Request

        • POST /users/{userId}/sessions/expire

        Request path

        ParameterRequiredTypeRestrictionsDescription
        userIdYStringUser Id

        Request body

        {
            "sessionIds": ["String", "String"]
        }
        JSON
        ParameterRequiredTypeDescriptionRestrictions
        sessionIdsYArraySession ID list

        Response

        Response body

        [{
          "id": "String",
          "success": "boolean",
          "message": "String"
        }]
        JSON
        ParameterTypeDescriptionRestrictions
        [].idStringSession ID
        [].successBooleanSuccess or Failure
        [].messageStringError message upon failure

        Error

        Errors that may occur while using this action are listed below. For error response format, see Error Response.
        For more information about common errors, see NAVER Cloud Platform API.

        HTTP status codeError codeError message
        400400Invalid request.
        4009050This user doesn't exist.

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.