A session contains information specific to a particular user across the whole application. ... You can store the user information into the session object by using setAttribute() method and later when needed this information can be fetched from the session. This is how you store info in session.