m1guelpf/laravel-fastlogin

Creation Error caused by multiple Session ID's

LTKort opened this issue · 1 comments

It gives a 500 error on where it creates a 'CacheKey':

return 'fastlogin-request-'.sha1(request()->getHttpHost().session()->getId());

On dumping the session ID, while creating the key, it dumps multiple different keys. The cause is the session ID. It changes per request. When I switch it to:

protected function getCacheKey()
    {
         return 'fastlogin-request-'.sha1(request()->getHttpHost().request()->session()->token());
    }

Source: Laravel Docs

It does seem to work correctly..