Comments (2)
看下你的cookie的配置是不是有出入。
默认的cookie过期时间是0,这个默认配置虽然一般没有问题,但实际上是不合理的。
过期时间为0,原则上每次浏览器重启,都会丢失用户状态。之所以不会这样,是因为浏览器都有会话保持功能,关闭浏览器不会关闭会话,再打开时,会继续之前的会话,因此效果上就像永久不会过期一样。只要换成electron就会出问题。
from framework.
看下你的cookie的配置是不是有出入。 默认的cookie过期时间是0,这个默认配置虽然一般没有问题,但实际上是不合理的。 过期时间为0,原则上每次浏览器重启,都会丢失用户状态。之所以不会这样,是因为浏览器都有会话保持功能,关闭浏览器不会关闭会话,再打开时,会继续之前的会话,因此效果上就像永久不会过期一样。只要换成electron就会出问题。
感谢回复,我看了一下,这两个项目都没有设置cookie过期时间,config目录中没有放cookie.php配置文件
from framework.
Related Issues (20)
- The memory overflow problem exists in the framework of versions later than 8.0.0 HOT 5
- Reflected XSS(Cross Site Scripting) HOT 1
- 框架加载配置文件期间的异常无法捕获
- 编辑器提示存在漏洞 HOT 3
- Log::getLog()获取不到日志内容 HOT 1
- composer安装thinkphp8安装失败 HOT 3
- cache 使用redis,并使用getex指令,无法获取前缀 HOT 2
- Validate对于有序数组的校验 HOT 1
- 简单的一个测试就报错?是我小白,还是? HOT 4
- Session的Facade能不能也加上Cookie/Cache@method
- 读取.env文件内容残缺 HOT 5
- url生成出现多个index.php HOT 1
- 数据验证类 validate 有关mobile格式 HOT 1
- PHP8.4+版本中大量异常报错 HOT 1
- [bug]获取主机名方法 `request()->domain()` `request()->host()` 的返回,都没有带端口号 HOT 8
- 异常处理需要进一步优化 HOT 2
- 内存泄漏严重,即使没有开启APP_DEBUG与SQL记录 HOT 2
- tp8遇到一些白屏500问题 HOT 2
- 路由规则变量使用post接收list数据时传递的变量会变成list的第一个,传递object的时候正常
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework.