$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