Is there anyway to display all sessions data ?
I tried this way
Session::all();
but it return current user info not all stored sessions
Then I tried this code
DB::table('sessions')->get();
it retrieve all stored data but everything is encrypted like this
[id] => zZLNtqmennbg3gdsfdsffdstlvdZfjKtzZTP7Or6Tk
[user_id] =>
[ip_address] => 196.144.136.233
[user_agent] => Mozilla/5.0 (Linux; Android 7.0; SM-G610F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.91 Mobile Safari/537.36
[payload] => YTozOntzOjY6Il90b2tlbiI7czo0MDoiOVJXSmdkZlFnVktNU3lVVlBQSFdKOElrRFFMVEdtYUJnMENiQzY4NSI7czo5OiJfcHJldmldfdsfdsfdfzOiJ1cmwiO3M6MzM6Imh0dHBzOi8vYXJldmlld3NhcHAuY29tL2Vycm9yXzQwNCI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=
[last_activity] => 1535513730
Also I don't have user_id since I use custom sessions
This code returns the correct data but for one user only
Session::all();
How can I retrieve all sessions data like this ?
["plan_type"]=> string(7) "test" ["shop"]=> string(36) "test.test.com"
Because what stored in database is encrypted I want user data so I know how many session each user have