Hey proffessor do you have any tutorials on storing and retrieving sessions? Im trying to update user count and last active using sessions I did an update Set when user logs in but if the user uses the remember me function then update set wont work..
Are you saving it in the database?
no thats what i am trying to figure out
What do you mean by user count?
What do you mean count?
This - "Im trying to update user count"
I want to update a field called last activity wit hthe time they were last on the site
You can add sql query to the guard function we created in the login course, log the users id then update active time in the database whenever the user make any request.
can you maybe provide an example? I did one on the login but it only works if they login everytime
I will look into it, I don't have an already made script but it shouldn't be that difficult to implement.