---
title: "keepAlive"
slug: "api/session/operations/keepalive"
sidebar:
  order: 143
---

<a id="ref-d2d25fa998f7"></a>
<a id="ref-f24560e6de40"></a>
<a id="ref-8e417f8dab35"></a>

## Synopsis

```text
boolean keepAlive(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)

In order to avoid a session being closed due to an expired session timeout the client may periodically invoke the `keepAlive` operation. If the `sessionId` argument identifies an open session then the session’s time-out timer is reset to it’s initial value (§[Timeout for Sessions](/pCon/configuratorOnline/specs/guide/configuration/server-start-up-file/timeout-for-sessions#ref-7ba729350dca)) and the operation returns `true`. Otherwise, the operation returns `false`.

The `keepAlive` 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.
