Actually when we sign in or login, a new session is created having unique session id.This session can be handled in various ways such as using cookies and since http is a stateless protocol,there is an importance of sessions.