mardi 23 janvier 2018

Laravel 5 - How to save sessions to database

I'm using Laravel 5.5. I want to save every visitor that enter to my web application as session to databases. But i don't want the session be deleted after X amount of time. I wast to have a database with all sessions.. since beginning of time.

Now i know that laravel has it own Sessions instance. I don't know if it is the same or not. i just want a database table with session for every visitor that visit my web application. And that this session will not be deleted at all.

What is the best way to build it? Let say a visitor that is auth or not auth enter to my app and play a game. i want to save it per session and related it to a auth user or not.

Thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire