I think the idea of $_sessions
is that the server processes its own information faster, rather than receiving mass information from the client.
Look at it like this:
You (the server) and friend (client) gossip about another Cindyβs friend, do you share with you every information about her (hair color, height, etc.)? No, that would be a waste of time. It is much faster for you to process the information that you already know about Cindy (in the $_session
file, on the server side) and receive unique information ( $_cookies
) from your friend (client).
Effectively: "Hey, did you hear what Cindy did last night?"
NOT effective: "Hey, did you hear that Cindy had brown hair, a blue eye, a medium build, etc ... last night?"
Obviously, this does not fully summarize $_sessions
and $_cookies
, but it may help someone to understand effective short-term data management.
Isaac dozier
source share