How do sessions work at HTTP level?

5

I came across this question recently and did not find much about it in web .

I'm used to working (and reading) about session in PHP , but I never stopped to think how they would be at HTTP level, someone would you know something about?

How is the session handled and behaves at the HTTP level?     

asked by anonymous 20.11.2017 / 13:07

1 answer

4

As explained in the replies cited ¹ ² , HTTP is stateless :

  

is a communication protocol that considers each request as an independent transaction that is not related to any previous request, so that the communication consists of independent request and response pairs.

To make it possible to store states in the connection, a cookie is used in a specific field in the% Header HTTP .

    
20.11.2017 / 14:47