# Change login session duration

To increase the number of minutes a session lasts do the following.

**Warning!**  
**This change affects all instances on a server!**

First, update the tomcat configuraion

```bash
sudo nano /usr/share/tomcat/conf/web.xml
```

Second, find the following config and adjust acordingly  
The attribute is defined in minutes.

```xml
<session-config>
  <session-timeout>30</session-timeout>
</session-config>
```

Third, restart tomcat

```bash
ts restart-webserver
```

Fourth, update the policies on the instance.  
Update `sessionLifetimeMinutes` and `sessionLifetimeMaximum`.