title: Which way to create cookie, by frontend or backend?
body: <p>Per I understand, cookie is some way to make our webapp stateful.</p>
  
  <p>As cookies can be created both in javascript (frontend) and from http response (by backend), so is there any principle when cookies should be created by frontend and when by backend? </p>
  
  <p>Is some user scenario can be given, it would be great.</p>