---
title: "closeSession"
slug: "api/session/operations/closesession"
sidebar:
  order: 142
---

<a id="ref-1cd8aa58068e"></a>
<a id="ref-a0cb24687c7a"></a>
<a id="ref-ec31ae34089f"></a>

## Synopsis

```text
void closeSession(SessionId sessionId) throws SessionServiceFault;
```

See also: [SessionId](/pCon/configuratorOnline/specs/api/session/types/sessionid#ref-02e397c8fdb4), [SessionServiceFault](/pCon/configuratorOnline/specs/api/session/faults/sessionservicefault#ref-30a5c7817f4a)

The `closeSession` operation closes the session identified by the `sessionId` argument. Once this operation has executed, any other operation using the same `sessionId` will fail.

The invocation of the `closeSession` operation has no effect if the `sessionId` argument does not identify an open session.

The `closeSession` operation can't be used with a session context ID as their first argument.

A [`SessionServiceFault`](/pCon/configuratorOnline/specs/api/session/faults/sessionservicefault) is returned if any of the following conditions occurs:

- The `sessionId` parameter is not a valid string representation of an UUID.
