Every time laravel requests and responds, the session_id must be reset. why is that
What does this configuration of session mean? It means recycling the session storage location. But I can’t understand the value of this configuration
给我你的怀抱2017-06-08 11:03:42
Can you send a few more screenshots of the request? It’s normal here. In the same session, the sessionId is the same for every request;
As for the lottery
in the configuration item, it represents the probability of invalid data cleaning in the database session
; in the StartSession
middleware, in such a sentence
random_int(1, $config['lottery'][1]) <= $config['lottery'][0];
Indicates that there is a 1% probability that the expired and invalid session
data in the database will be cleared; it has nothing to do with this session session
data;
phpcn_u15822017-06-08 11:03:42
Where is the id
? This is the whole session
.
{"iv":"\/PLhqJ0pJW7B3rcJADr6og==","value":"7zmpKgHi6Ptn0EX6rsNE9GQAzkJ2UCIS\/nYaTulX3XkeRR+DKhYYyjv3XnuVWCZ4ZQf77rtdbb4rW2KzzQVyyI69jKawpmYbId48qPVPi\/1cmwKgGG4UWF1pca4DAWXOwnyguOHtwutbpbOYc15sVf3uQUWELf2BUEGWSDtyuVir13vubE4LJRZRhR5aGhzS9MNNdwr4Is0jP8SJ6ucaFXWREiL3n6n0W+wWn6z4rGew8Sp01Im7v8yIErXGs3DvyFuUHfxPRR\/l5AzRmQe\/eKuLoh1MbN\/hOWDB17zjiTYDRP3l3Zx2Gqd2YrS11QtEULOcgklbrgPIuK6YQwXi4797d95Um\/CETKc35VGTkpY2QzU1rPsEWfDHkJAxyvmhBTZochfJn4b7qxQ31Ot96qNxs+ILHt7yNX2DvEVYrpbOux3ynrHhkUTP\/n7mX3bGFvQRlV4hXM+nSi2z9Z1H0kWTXCRA+lYvv2M7NJf4jYI4W6ZoKV1yxg7FyUPGnTzaWxrbAG92oKKwWazgKu2FbCBafeg4\/0mh6Xn5q9UOEeCPzvXWoTSLLyJB55J2fL+TNMaLyUH9dE2IvCpGqpBAbElE2FN3sEoeErvt6VoSsDa669cyuyoVNvg4qpZylyuTubS4o8iHpWNym+iERDv9j2UDrtRAEm6vQl0Nl19f8YYnjRD0qCN1qLS149F6GV\/PgBPTOtjK0tWz\/6DGcSTmxLix7rY3N5C+RMUBT5JO6WusU\/QYpXFzg10t5yh8jmZK","mac":"9cb99e2c017bc833c78376a3e09d595b425d8f954640ab16532837b3b8b69ee4"}
After decoding, it’s Jiang Zi
曾经蜡笔没有小新2017-06-08 11:03:42
You can’t just say the problem, you have to post the corresponding configuration file, otherwise we can only guess, which is very inefficient...
某草草2017-06-08 11:03:42
Let’s take a look at the auth source code to find the answer
The session in laravel is these data