Ok so I want to check if my users are online or not, I think a good way of doing this is using the sessions table that laravel provides. I'm a newbie though so can anybody first of all explain to me what this data means.
CREATE TABLE sessions
(
id
VARCHAR(40) NOT NULL,
last_activity
INT(10) NOT NULL,
data
TEXT NOT NULL,
PRIMARY KEY (id
)
);
last_activity is a unix timestamp, that one is clear to me.
My id = lGBzJ0dIWiebrwjFlkQAE19NHuNHvsPRVS7e4CRO
This is equal to the cookie value but that doesn't say all that much to me.
and my data = a:3:{s:5:":new:";a:0:{}s:5:":old:";a:0:{}s:10:"csrf_token";s:40:"XOZbMp8mrVUbu2Lk4c1cEdCoJUQIL3tSeHaztH1v";}
What do these 2 mean and how can I use them to derive a user id from them in laravel?