php - SessionHandler issue

Solution:
why not modify SessionHandler::sessionWrite() to log debug_backtrace() info to a temporary log file. Then you can see this "blank" session and where sessionWrite was called from and realize what to fix? So just something easy like:
public function sessionWrite($sessionId, $sessionData)
{
file_put_contents('test.txt',serialize(debug_backtrace()),FILE_APPEND);
......
}
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: invalid argument supplied for foreach() laravel
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.