#Authentication on the web
Techniques that can be used for authentication:
- Basic HTTP authentication
- Cookie based authentication
- Token based authentication (JWTs) Look at this blog for explanation of each of these: https://blog.risingstack.com/web-authentication-methods-explained/
The Cookie and Token based authentication appear to be same but are not. Look at this blog: https://auth0.com/blog/cookies-vs-tokens-definitive-guide/
Reading about Cookies will confuse you further because you don't know what a session is or what it is used for. Look at this blog: http://machinesaredigging.com/2013/10/29/how-does-a-web-session-work/