84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
$request->session()->put('code',$code);
How to set the expiration time when creating a session
'lifetime' => 120,
Are there any other setting methods besides this setting?
闭关修行中......
I guess you want to set a longer time for some values, right.
Then you should use cache来做哦,Session的初衷就是保存用户会话的东西,一般也只保存登录用户的一些信息。只要用户在有效期内持续访问,Sessionit will automatically extend
cache
Session
For example, the Cache key name is: user-12-some
user-12-some
I guess you want to set a longer time for some values, right.
Then you should use
cache
来做哦,Session的初衷就是保存用户会话的东西,一般也只保存登录用户的一些信息。只要用户在有效期内持续访问,
Session
it will automatically extendFor example, the Cache key name is:
user-12-some