The Logout option allows users to securely sign out of their Blazly GEO account. When selected, a confirmation dialog is displayed to prevent accidental logouts and notify users about unsaved changes.
Logout Confirmation Dialog
Selecting Logout opens a confirmation modal before ending the current session.
The dialog includes:
- Logout title.
- Confirmation message.
- Warning about unsaved changes.
- Cancel button.
- Logout button.
- Close (X) icon.
Confirmation Message
The dialog asks the user to confirm the logout action.
Displayed message:
- Are you sure you want to logout?
Unsaved Changes Warning
The dialog informs users that any unsaved work will not be retained after logging out.
The warning indicates:
- The user will be redirected to the login page.
- Any unsaved changes will be lost.
This helps prevent accidental loss of work.
Cancel Button
The Cancel button closes the dialog without logging out.
Behavior:
- Closes the confirmation modal.
- Returns the user to the current page.
- Preserves the active session.
- Keeps all unsaved work intact.
Logout Button
The Logout button completes the sign-out process.
After confirmation:
- The current session is terminated.
- Authentication tokens are cleared.
- The user is redirected to the login page.
- Protected pages become inaccessible until the user signs in again.
Close Icon
The X icon in the dialog header dismisses the confirmation popup.
Behavior:
- Closes the dialog.
- Cancels the logout action.
- Keeps the current session active.
Security
The logout confirmation improves account security by:
- Preventing accidental logouts.
- Warning users about unsaved changes.
- Ensuring sessions are intentionally terminated.
- Redirecting users to the authentication page after logout.