Session Management
Manage user sessions, handle multiple terminals, and implement secure logout functionality.
Overview
The SDK supports multiple concurrent sessions, enabling scenarios like multi-terminal management, session switching, and secure logout.
getSessionId()
Get the current session identifier.
getSessionDetail()
Get full details of current session.
getSessionList()
List all stored sessions.
logoutSession()
Clear session and credentials.
Security Note
Always logout when the user ends their session. This clears sensitive credentials from device storage and prevents unauthorized access.
Current Session
Access information about the currently active session.
Get Session ID
Retrieve the ID of the current active session.
Loading...Flutter Note
In Flutter, getSessionId() is an async Future<String?> instead of a synchronous property.
Get Session Detail
Retrieve full details of the current active session.
Loading...Session List
Retrieve all stored sessions for multi-terminal scenarios.
Loading...Logout
Securely logout and clear stored credentials.
Logout Current Session
Logout the current active session. After logout, you must call initiate() again to start a new session.
Loading...Logout Specific Session
Logout a specific session by its ID. Useful when managing multiple sessions across devices.
Loading...Multi-Terminal Scenarios
Example implementation for managing multiple terminal sessions simultaneously.
Loading...Use Cases
Fleet Management: Manage multiple devices from one account. Multi-Merchant: Switch between merchant profiles. Shift Handover: Transfer sessions between staff members.
SessionDetail Model
Properties available on the SessionDetail object.
| Property | Type | Description |
|---|---|---|
| sessionId | String? | Unique session identifier |
| String? | Associated email address | |
| tsn | String? | Terminal Serial Number |
| terminalId | String? | Associated terminal |
| merchantId | String? | Associated merchant |
On this page
Downloads
Coming SoonSample apps, release bundles, and more content will be available here soon.