Home > Back-end >  Django - Difference between sessions and Cookie?
Django - Difference between sessions and Cookie?

Time:11-18

Hey every one i am trying to create user story for an website and face problem creating user story for session management and cookies management. can any one help me ?

CodePudding user response:

In some cases it is preferred to use sessions because the actual values are hidden from the client, and you control when the data expires and becomes invalid. If it was all based on cookies, a user (or hacker) could manipulate their cookie data and then play requests to your site.

also if your storing big amount of data you should use sessions bc unlike cookies sessions can store an unlimited amount of data, if your not, using cookies can also increase performance of ur site (going back and forth in different pages of your website) for more information I think this website can help you (Sessions vs Cookies)

  • Related