Skip to main content

Logout Guide

The Logout feature allows administrators to securely sign out from the dashboard.

Where to Find Logout

The logout option is available inside the My Account dropdown located at the bottom of the sidebar.

Steps to Logout

  1. Open the sidebar profile section
  2. Click My Account
  3. Select Logout

Logout


Logout Process

When the logout button is clicked:

  • The system sends a logout request
  • User session is cleared
  • Authentication cookies are removed
  • User is redirected to the login page

Logout API

The dashboard uses the following API endpoint:

/api/auth/logout

Request method:

POST

Redirect Behavior

After successful logout, the user is redirected to:

/login

The dashboard router automatically refreshes the application state.


Security Benefits

Using logout properly helps:

  • Protect admin accounts
  • Prevent unauthorized access
  • Clear active sessions
  • Improve dashboard security

Mobile Support

The logout feature works on:

  • Desktop devices
  • Tablets
  • Mobile devices

Mobile users can access logout through the sidebar account section.


Troubleshooting

Logout Not Working

Check the following:

  • API route exists
  • Session middleware is configured correctly
  • Authentication cookies are enabled
  • User has internet access

Best Practices

  • Always logout after using shared devices
  • Do not keep admin sessions active unnecessarily
  • Use secure authentication methods
  • Refresh the page if session state appears outdated

Notes

  • Logout instantly clears the current admin session
  • Users must log in again after logout
  • Session refresh happens automatically after redirect