unserialize():40个字节的偏移量0处出错错误 [英] unserialize(): Error at offset 0 of 40 bytes Error

查看:251
本文介绍了unserialize():40个字节的偏移量0处出错错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用php artisan serve在本地主机上运行我的应用程序,但是出现此错误unserialize(): Error at offset 0 of 40 bytes我的问题在哪里?

I Want to run my application in localhost with php artisan serve but I get this Error unserialize(): Error at offset 0 of 40 bytes where is my problem?

推荐答案

当我将Laravel 5.5应用程序升级到5.6时,我遇到了同样的错误.错误来自EncryptCookies-中间件.

I got the same error, when I upgrade a Laravel 5.5 app to 5.6. The error comes form the EncryptCookies-Middleware.

在浏览器中删除cookie和/或在Laravel应用中清除会话文件.

Delete the cookies in your browser and/or clear your session-files in your Laravel app.

这篇关于unserialize():40个字节的偏移量0处出错错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆