# Use Case 9.7 Log out of the app
## Overview
| Aspect | Description |
|------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Summary** | The user logs out manually from the app or is logged out due to inactivity. |
| **Goal** | Logging out of the app. |
| **Preconditions** | *None* |
| **Postconditions** |
- User is logged out of the app.
|
| **Triggered by** | - User selects 'Logout' in [UC9.1 Show app menu](UC9.1_ShowAppMenu.md)
- Inactivity monitoring runs continuously
|
| **Additional Documentation** | *None* |
| **Possible errors** | *None* |
| **Logical test cases** | - [LTC69 Manual logout from menu](../logical-test-cases.md#ltc69)
- [LTC70 Logout due to inactivity](../logical-test-cases.md#ltc70)
- [LTC71 Logout due to background timeout](../logical-test-cases.md#ltc71)
- [LTC72 User confirms logout on inactivity prompt](../logical-test-cases.md#ltc72)
- [LTC73 User dismisses inactivity prompt](../logical-test-cases.md#ltc73)
|
---
## Flow
| # | Description | Next |
|---------|-------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------|
| **1** | **PRIMARY SCENARIO** | |
| **1.1** | **System determines (continuously) whether the user is (in)active** | |
| 1.1a | Case: User is active within inactive_timeout (initially: 5 minutes) | End |
| 1.1b | Case: User is inactive for more than inactive_timeout | Go to: [UC2.3 Unlock the app](UC2.3_UnlockTheApp.md) |
| 1.1c | Case: User is inactive for more than warning_timeout (initially: 40 seconds) | 1.2 |
| 1.1d | Case: App is backgrounded for less than background_timeout (initially: 5 minutes) | End |
| 1.1e | Case: App is backgrounded for more than background_timeout | Go to: [UC2.3 Unlock the app](UC2.3_UnlockTheApp.md) |
| **1.2** | **System displays prompt 'Inactivity warning'**- Are you still there?
- Actions: Yes, continue & Logout
| |
| 1.2a | User selects Yes, continue | End |
| 1.2b | User selects Logout | Go to: [UC2.3 Unlock the app](UC2.3_UnlockTheApp.md) |
| 1.2c | Event: User does not respond within inactive_timeout | Go to: [UC2.3 Unlock the app](UC2.3_UnlockTheApp.md) |
| **2** | **USER LOGS OUT MANUALLY** | Go to: [UC2.3 Unlock the app](UC2.3_UnlockTheApp.md) |