Skip to main content

Browser Sessions

Peak offers users the ability to manage and monitor their active browser sessions for enhanced security and transparency. This feature builds on Jetstream’s session management capabilities and allows users to view all active sessions authenticated under their account, including device information and IP addresses.

Viewing Active Browser Sessions

To access the list of currently active sessions:

User Dashboard → Account Settings → Security → Browser Sessions

This section displays all devices currently logged in to the user's account. For each session, information such as device type, browser, operating system, and last active time is presented. The current session is clearly marked for clarity.

Session Management Actions

For security purposes, users can log out of all other sessions except the one they are currently using. This is useful in situations such as:

  • Lost or shared devices
  • Forgotten logouts on public computers
  • Suspicious activity

The logout action is handled safely and efficiently using Laravel’s built-in session management middleware:

Illuminate\Session\Middleware\AuthenticateSession

This middleware ensures that other sessions are invalidated without compromising the user’s active session or requiring reauthentication.

Note: Password confirmation is required before this action can be executed, to prevent unauthorized access.

Customizing the View

The frontend view that handles browser session display and logout is located at:

resources/js/Themes/Breeze/Pages/Dashboard/Partials/LogoutOtherBrowserSessionsForm.vue

You may customize this component to:

  • Adjust the UI or design
  • Modify session details displayed

After editing, be sure to rebuild your frontend assets with:

npm run dev

or for production

npm run build

No Backend Customization Required

Browser session management in Peak is fully integrated and secured through Jetstream and Laravel’s core features. Customization of backend logic is typically not necessary and is discouraged unless you have a specific advanced use case.

Summary

  • Users can view and manage all logged-in browser sessions.
  • Located under: Dashboard → Account Settings → Security → Browser Sessions.
  • Users may log out of all sessions except their current one.
  • Securely handled via Laravel's AuthenticateSession middleware.

This feature empowers users to monitor access to their accounts and adds an additional layer of control and trust to your application.