Httpsession vs servlet

Sessions are server-side files that contain user information,
while Cookies are client-side files that contain user information.
A cookie is simply a short text string that is sent back and forth between the client and the server.
coder