I'm creating a Laravel application and I'm trying to grasp the concept of the HTTP session. I noticed that I don't really understand it on a fundamental level (e.g. what exactly happens).
On the internet there isn't much information available besides some basic stuff (getting and retrieving data, plus a few other common things).
I want to better understand it, so it'd be extremely helpful is someone could clarify the following things for me:
- What is a session exactly? What is meant with the driver?
(Laravel offers: "file", "cookie", "database", "apc", "memcached",
"redis", "dynamodb", "array".) What happens to it when I choose
file
vscookie
? - What does it mean when a session expires? Is that when a user navigates away, or is it only for a specific time in the browser? E.g. if I redirect the user the some OAuth during onboarding, does that mean that the session expires or not?
Many thanks in advance!