A session cookie is a browser cookie that has validity only for that session. For example, when the user logs in, we might store the access token in a session cookie.
Here is how we can see a session cookie in browser console:
Browser automatically destroys session cookies when it is closed. Closing just the tab, will not kill the session cookies.
Here is a code sample:
document.cookie = "site=Backbencher.dev";
You can try out this code from the browser console. After that, we can see the session cookie created.