What happens when you dd(session('user'));
Jan 19, 2017
10
Level 26
Session Persist with Redis
I want to use Redis for my session. I have set up everything and i can die dump the session and see the STORE object when i die and dump. The problem is when i add something on the session i cant see it in the session.
session()->put('user', 'My name');
Now when i refresh and i **dd($request->session()) ** i only see the _token parameter only.
Store {#183 ▼
#id: "xymEy5TRfwZsmMeWzjkPDBOaYhCs4RqFouI6HRYy"
#name: "laravel_session"
#attributes: array:1 [▼
"_token" => "eoWnt485RzOPypPBQMjqOuw5VzptT0k3Mz7Cc8LK"
]
......
Am using Centos 7 as my server.
NB: The session was acting the same even with the file as the driver.
The redis driver is okay because i have been able to **set** and **get** from the Redis facade.
Please or to participate in this conversation.