首页 > 解决方案 > Jetstream 浏览器会话不列出设备 – Laravel 8

问题描述

在我的开发环境中,注销其他浏览器会话的功能效果很好。但是,在生产环境中, 注销其他浏览器会话的功能不起作用。它也不显示设备。

资源/视图/配置文件/注销-其他-浏览器-会话-form.blade.php

<x-jet-action-section>
    <x-slot name="title">
        {{ __('Browser Sessions') }}
    </x-slot>
    <x-slot name="description">
        {{ __('Manage and log out your active sessions on other browsers and devices.') }}
    </x-slot>
    <x-slot name="content">
        <div class="max-w-xl text-sm text-gray-600">
            {{ __('If necessary, you may log out of all of your other browser sessions across all of your devices. Some of your recent sessions are listed below; however, this list may not be exhaustive. If you feel your account has been compromised, you should also update your password.') }}
        </div>
        @if (count($this->sessions) > 0)
          There are = {{ count($this->sessions) }}
        @else
          There are NO sessions
        @endif
        @if (count($this->sessions) > 0)
        ...

开发环境 显示两台设备登录

生产环境 有两个设备登录,但没有显示其中任何一个

有谁知道为什么会这样?

标签: laravelsessionjetstream

解决方案


推荐阅读