Account
Log Out of Posnic and End Your Till Session Safely
Logout is the deliberate end of the signed-in browser or desktop session. It clears the active account and till context and requires the account password for the next sign-in.
- Menu path
- Top-right user menu -> Logout
- Verified from
- Posnic demo and current POS source reviewed on 2026-09-08
Technical source evidence
frontend/layouts/header.html Logout menu action, frontend/static/script/js/modules/js/dashboard.js logout confirmation and session-filter warning, frontend/static/script/js/modules/js/users.js logoutCheck local till-context cleanup and login redirect, api/src/routes/users.routes.js GET and POST users/logOut, api/src/controllers/users.controller.js logOut session closure, Express session destruction and JWT-cookie clearing, demo.posnic.io confirmation dialog verified on 2026-09-08
Before You Log Out
- Save or cancel any open sale, purchase, stock adjustment or settings form.
- Finish receipt printing and digital receipt sending before leaving the completed-sale screen.
- Close or count the cash register first when shop policy requires a formal end-of-shift close; logout does not replace register close.
- Confirm no customer information or receipt is left visible on a shared counter.
- Make sure you know the account password because the lock-screen PIN is intentionally forgotten after deliberate logout.
Log Out
- Select your name and avatar at the top right of Posnic.
- Select Logout.
- Read the confirmation message.
- Select No when you still have unfinished work; the current session remains open.
- Select Yes only when you are ready to end the session.
- Wait for the login page and the message that you have been logged out.
- On a shared till, do not walk away until the login page is visible.
Session Filter Warning
Users with Sales -> Session Filter permission receive an extra warning: logging out deactivates that login session, and its old session-scoped details are not available after the next login. Finish any session-only review before selecting Yes.
- This warning appears only when the signed-in user has session_filter access.
- It describes the user's restricted view, not deletion of sales from the shop.
- Managers with broader access can still use authorized reports according to their permissions.
- Do not keep a shared account logged in merely to preserve a cashier's session-filter view; finish the review and log out securely.
What Logout Clears
| Context | What Posnic does | Operator impact |
|---|---|---|
| Server session | Marks the active user session inactive and destroys the Express session. | Protected screens require a new login. |
| Authentication cookie | Clears the JWT cookie used to restore the signed-in session. | Reloading the dashboard should not reopen the old session. |
| Desktop token | Removes the locally stored JWT token when Posnic is running in Electron. | The desktop till also returns to password sign-in. |
| Branch and till context | Clears cached branch, printing, customer, timezone, currency and navigation values. | The next user receives their own permitted branch context after login. |
| Lock-screen PIN | Forgets the remembered PIN for the logged-out username. | A PIN cannot reopen a deliberately ended session; use the password. |
| Business records | Does not delete saved sales, purchases, customers, items or reports. | Saved records remain available to authorized users. |
Logout Is Not Register Close
Logout protects the user account; register close reconciles money. A cashier ending a shift may need to do both in the order defined by the shop.
| Action | Purpose | Typical result |
|---|---|---|
| Lock Screen | Temporarily protect an active desktop till. | The same session resumes with the configured PIN. |
| Close Register | Count tender and finish the cash-register session. | Expected, counted and difference values are recorded. |
| Logout | End the signed-in account session on this browser or desktop app. | Posnic returns to password login and clears local till context. |
Troubleshoot Logout
| Symptom | Check | Action |
|---|---|---|
| Logout confirmation does not appear | Whether the account menu is fully open and another drawer covers it. | Close the drawer, reopen the user menu and select Logout once. |
| Dashboard remains after Yes | Network connection and whether the logout request completed. | Wait briefly, then reload; if protected data still opens, report the session issue to an administrator. |
| PIN no longer unlocks the till | Whether Logout was used instead of Lock Screen. | Sign in with the account password; logout intentionally removes the remembered PIN. |
| Previous session-filter details are missing | Whether the user has Session Filter permission and logged in again. | This is expected for session-scoped access; ask an authorized manager to review broader reports. |
| Register is still open | Whether the drawer was formally closed before logout. | Follow the register close procedure; ending the account session does not reconcile the drawer. |