# setSessionExpiredTime {#setsessionexpiredtime}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`setSessionExpiredTime(expire)`

## Arguments {#arguments}

**expire** is a DURATION scalar indicating the session duration.

## Details {#details}

Set the maximum duration of session when strict security policy is enabled \(see configuration parameter *strictSecurityPolicy*\). It can only be executed by an administrator.

## Examples {#examples}

``` {#codeblock_zq1_tms_c2c}
setSessionExpiredTime(3600s)  // set session duration to 1 hour
getSessionExpiredTime() // output: 1H
```

