:doc:`WorkSpacesWeb <../../workspaces-web>` / Client / expire_session

**************
expire_session
**************



.. py:method:: WorkSpacesWeb.Client.expire_session(**kwargs)

  

  Expires an active secure browser session.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workspaces-web-2020-07-08/ExpireSession>`_  


  **Request Syntax**
  ::

    response = client.expire_session(
        portalId='string',
        sessionId='string'
    )
    
  :type portalId: string
  :param portalId: **[REQUIRED]** 

    The ID of the web portal for the session.

    

  
  :type sessionId: string
  :param sessionId: **[REQUIRED]** 

    The ID of the session to expire.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`WorkSpacesWeb.Client.exceptions.InternalServerException`

  
  *   :py:class:`WorkSpacesWeb.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`WorkSpacesWeb.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`WorkSpacesWeb.Client.exceptions.ThrottlingException`

  
  *   :py:class:`WorkSpacesWeb.Client.exceptions.ValidationException`

  