php - larave session problem, why does the session_id change every time?
怪我咯
怪我咯 2017-06-08 11:01:42
0
4
1091

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

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(4)
给我你的怀抱

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 StartSessionmiddleware, 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 sessiondata in the database will be cleared; it has nothing to do with this session sessiondata;

phpcn_u1582

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

曾经蜡笔没有小新

You can’t just say the problem, you have to post the corresponding configuration file, otherwise we can only guess, which is very inefficient...

某草草

Let’s take a look at the auth source code to find the answer

The session in laravel is these data

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