

As soon as you enter the correct credentials, the server establishes a connection with you.

To simplify their meaning, I prefer the term 'beginning of a relationship' when referring to sessions.

How does Session work? Session and Cookies An account is created by the server as soon as username and password are entered correctly. As a result, the cookie variable serves as a pointer to the session formed. What happens when I get logged in? When you log in, the web server opens a session and sets a cookie variable in your browser to keep track of your session. However, if it matches, you are logged in. A password error message will appear if the two don't match. Next, the server verifies your password against the server's password database. How does User Login work? An online site's server receives your username and password every time you check in. So, how does it function? How does the website verify our identity? How does it know who's logged in and where they're logging in from? Let's take a look at each of these questions individually. You can't tweet on Twitter, comment on Facebook, or email on Gmail unless you've signed up for the service and are logged in. They all have one thing in common: they all demand you to check in before you can accomplish anything. How Does User Login Work?Ĭookies And Session We all use Facebook, Gmail, and Twitter on a daily basis.
