"Middleware functions are functions that have access to the request object (req), the response object (res), and the next function in the application’
시작에 앞서 쿠키는 웹 브라우저에 저장되는 key = value 타입의 데이터이다 따라서 누구나 key에 따른 value를 알수 있기에 정보를 쉽게 탈취 당할 수 있으므로 중요 정보를 넣는 역할은 적절하지 않다Session은 이러한 문제점을 고려 쿠키를 업그레이드 했다