diff --git a/src/RedisAuth.php b/src/RedisAuth.php index b78261b..80c0c9d 100644 --- a/src/RedisAuth.php +++ b/src/RedisAuth.php @@ -47,7 +47,7 @@ public static function getUserIdByHeaders(array $headers) if (!$sessionFile = @$redis->get(config('cache.prefix', 'laravel') . ':' . $sessionName)) { return false; } else { - $object = @unserialize($sessionFile); + $object = @unserialize(unserialize($sessionFile)); $userId = @$object['login_web_' . sha1(SessionGuard::class)]; return $userId; }