HTTP is called as a Stateless Protocol. But when we create the session in the PHP, server sends the session ID to the browser using the Set-Cookie header. So in the next API call retrieves session information from the server. So its means it can get the session information from the previous API call.
Why HTTP is called as Stateless Protocol?
Learn Something New Everyday,
Connect With The Best Developers!
Sign Up Now!
& 500k+ others use Hashnode actively.