亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

php - Laravel uses redis to store sessions
給我你的懷抱
給我你的懷抱 2017-05-17 09:55:24
0
1
851

The redis storage session is configured in Laravel
But the question is how to set the session to expire after a week, preferably in the early morning at night?

In addition, after the user logs out, use forget to find that the session in redis still exists

Also, how do I use sessionid to get session information from redis

給我你的懷抱
給我你的懷抱

reply all(1)
給我你的懷抱

Question 1: How to set the session to expire after a week, preferably in the early hours of the night?
Answer: The config/session.php中有lifetime parameter in the project root directory indicates the expiration time in minutes, more specifically until the early hours of the night. This is difficult to handle;

Question 2: After the user logs out, use forget to find that the session in redis still exists?
Answer: Question, take a look at your forget語句怎么寫的呢?要不試試destory方法;參考參考IlluminateSessionCacheBasedSessionHandler.php code;

Question 3: How to get session information from redis?
Answer: read method, replace sessionId作參數(shù)傳入;同樣參考IlluminateSessionCacheBasedSessionHandler.php;

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template