laravel “laravel_session”cookie 有什么用?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44818779/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the use of "laravel_session" cookie?
提问by Antonios Tsimourtos
So i have created a project and right now i have to give information about every cookie that it is used. I am using laravel 5.0 and the cookies that are used by laravel are the below :
所以我创建了一个项目,现在我必须提供有关它使用的每个 cookie 的信息。我使用的是 laravel 5.0,laravel 使用的 cookie 如下:
1) laravel_session
2) XSRF-TOKEN
I know about the second one, but i can't find information about the first one. Is it about knowing the current user? The project also uses socialite - facebook.
我知道第二个,但我找不到有关第一个的信息。是关于了解当前用户吗?该项目还使用社交名媛——facebook。
Please, if you need any further information feel free to ask and i will provide.
请,如果您需要任何进一步的信息,请随时询问,我会提供。
采纳答案by Ian
Internally laravel uses laravel_session to identify a session instance for a user, this can be changed by going into config/session.php
and editing the cookie
value
Laravel 内部使用 laravel_session 为用户识别会话实例,这可以通过进入config/session.php
并编辑cookie
值来更改