1> Cookies is client side(Browser) and session is server side
2>The main difference between cookies and sessions is that cookies are stored in the user's browser, and sessions are not.
3> A cookie can keep information in the user's browser until deleted.
3> The problem with sessions is that when you close your browser you also lose the session
5>Sessions work instead like a token allowing access and passing information while the user has their browser open.
Asked In: Many Interviews |