Level 1
I set this question for myself on pause for a short time. But now when I got back to it this is a solution which I found suitable for myself (maybe that will help someone else):
- Token in database
- Cookies at the front
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have two Laravel apps:
Scenario:
Problem: I don't really understand in which direction should I move to save the session in Core (for example if I want that session automatically expires in 4 days). Also, what should I store on the user's side? Cookie? Then how to make cookies secure from Cookie Hijacking?
Please or to participate in this conversation.