(mozilla-projects-nss-reference-fc-closesession)=

# FC_CloseSession

## [Name](#name)

:::{container}
FC_CloseSession - close a session opened between an application and a token.
:::

## [Syntax](#syntax)

:::{container}

```{code}
CK_RV FC_CloseSession(
  CK_SESSION_HANDLE hSession
);
```

:::

## [Parameters](#parameters)

:::{container}
`hSession`

: [in] the session handle to be closed.
:::

## [Description](#description)

:::{container}
`FC_CloseSession` closes a session between an application and a token.

A user may call `FC_CloseSession` without logging into the token (to assume the NSS User role).
:::

## [Return value](#return_value)

## [Examples](#examples)

## [See also](#see_also)

:::{container}

- {ref}`mozilla_projects_nss_reference_fc_opensession`
:::
