You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the lockSession() fails when reading the data from Redis, it returns ''.
And it clears the session data, and the data will be saved when closing the session.
CodeIgniter4 Version: develop after 4.4.5
From
What happened?
If the lockSession() fails when reading the data from Redis, it returns
''
.And it clears the session data, and the data will be saved when closing the session.
CodeIgniter4/system/Session/Handlers/RedisHandler.php
Lines 151 to 172 in cc9ce52
CodeIgniter4/system/Session/Handlers/RedisHandler.php
Lines 315 to 319 in cc9ce52
Navigate to
http://localhost:8080/
and reload many times.Modify the code for testing.
Navigate to
http://localhost:8080/
again.Result:
Expected Output
If
read()
returnsfalse
, the following error occurs.But the session data remains.
The text was updated successfully, but these errors were encountered: