A web application does not maintain state. It has no memory. Each request to the web server is an independent event. Each request does not know about previous requests. When you send your username and password, the web server views this as an independent event. It does not keep track of what you’re logging in to. The information is simply sent to the server.
When you submit a form, all the information about what to do with the form data must be sent along with the form. Why? Because each ...