Hi,
only to be sure, you changed the SESSION_DRIVER=file to SESSION_DRIVER=redis in you .env-file, right?
Greetings
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I am trying to use redis instead of file session storage but it seems not working.
config\session.php configured as:
'driver' => env('SESSION_DRIVER', 'redis'),
Controller function seems as:
public function list(Request $request)
{
$request->session()->put("test", "demo");
$val = $request->session()->get("test", "default");
return view('cat-viviendas', ["val" => $val]);
}
Code works but I see it is being stored at storage\framework\sessions\session_file instead of redis. Any idea why it is not stored in redis?
Regards
Hi,
only to be sure, you changed the SESSION_DRIVER=file to SESSION_DRIVER=redis in you .env-file, right?
Greetings
Please or to participate in this conversation.