简体   繁体   English

该页面因不活动而过期。 请刷新,然后重试。 Laravel 5.5生产

[英]The page has expired due to inactivity. Please refresh and try again. Laravel 5.5 Production

I am trying to submit login page so i can access . 我正在尝试提交登录页面,以便可以访问。 It is in production stage. 处于生产阶段。 in localhost it works perfectly, but online when hosted it brings this error 在本地主机中,它工作正常,但在托管时联机则带来此错误

The page has expired due to inactivity. 该页面因不活动而过期。 Please refresh and try again. 请刷新,然后重试。

my login page: 我的登录页面:

@extends('layouts.app')

@section('content')
<!-- begin login -->
        <div class="login bg-black animated fadeInDown">
            <!-- begin brand -->
            <div class="login-header">
                <div class="brand">
                    <!-- <span class="logo"></span> Color Admin -->
                    AGPAHI
                    <small>Reporting Portal</small>
                </div>
                <div class="icon">
                    <i class="fa fa-sign-in"></i>
                </div>
            </div>
            <!-- end brand -->
            <div class="login-content">
                    {{--  <img src="{{ asset('img/AGPAHI.png') }}"><br/>  --}}

                <form class="margin-bottom-0" method="POST" action="{{ route('login') }}">
                    <input type="hidden" name="_token" value="{{ csrf_token() }}">

                    <div class="form-group m-b-20">
                        <input type="text" name="email" id="email" class="form-control input-lg inverse-mode no-border" placeholder="Email Address" required autofocus/>

                        @if ($errors->has('email'))
                            <span class="help-block">
                                <strong>{{ $errors->first('email') }}</strong>
                            </span>
                        @endif
                    </div>
                    <div class="form-group m-b-20">
                        <input type="password" class="form-control input-lg inverse-mode no-border" name="password" placeholder="Password" required />

                        @if ($errors->has('password'))
                            <span class="help-block">
                                <strong>{{ $errors->first('password') }}</strong>
                            </span>
                        @endif
                    </div>
                    <div class="checkbox m-b-20">
                        <label>
                            <input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}> Remember Me
                        </label>
                    </div>
                    <div class="login-buttons">
                        <button type="submit" class="btn btn-success btn-block btn-lg">Login</button>
                        <a class="btn btn-link" href="{{ route('password.request') }}">
                            Forgot Your Password?
                        </a>
                    </div>
                </form>
            </div>
        </div>
        <!-- end login -->
@endsection

what i have done: 1) added the csrf token inside the form 2) changed writing permission on the storage path 我做了什么:1)在表单内添加了csrf令牌2)更改了存储路径上的写入权限

what may be the problem? 可能是什么问题?

您可以将<input type="hidden" name="_token" value="{{ csrf_token() }}">更改为{{ csrf_field() }}然后,在此运行命令后php artisan config:cache php artisan config:cache

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 由于不活动,页面已过期。 请刷新并重试。 “在我登录后在我的生产托管 cpanel 中”laravel 5.5 - The page has expired due to inactivity. Please refresh and try again. "in my production hosting cpanel after i login" laravel 5.5 提交表单时 Laravel 返回“页面因不活动而过期。请刷新并重试。” - When submitting a form Laravel returns "The page has expired due to inactivity. Please refresh and try again." laravel 5.5 由于不活动,页面已过期。 请刷新并重试 - laravel 5.5 The page has expired due to inactivity. Please refresh and try again 该页面因不活动而过期。 请刷新,然后重试 - The page has expired due to inactivity. Please refresh and try again 登录responsinator.com时出现“页面因不活动而过期。请刷新并重试” - "The page has expired due to inactivity. Please refresh and try again" when login in responsinator.com Laravel 5.5 登录和注册页面说:由于不活动,页面已过期。[TokenMismatchException] - Laravel 5.5 login and register page says:The page has expired due to inactivity.[TokenMismatchException] 该页面因不活动而已过期。请刷新并在“登录”中重试 - The page has expired due to inactivity.Please refresh and try again in Login “由于不活动,页面已过期” - Laravel 5.5 - “The page has expired due to inactivity” - Laravel 5.5 Laravel 5.5页面由于不活动而过期 - Laravel 5.5 The page has expired due to inactivity Laravel 5.5:由于不活动,页面已过期 - Laravel 5.5: The page has expired due to inactivity
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM