0

How it says in the question, could some one can explain when is necesary the use ngCookies over localStorage or localSession in some uses cases, why asking, i recently have a project which have the priority to track some conditions, and store about its desitions, so i actually use localStorage to save, lets say configuration preferences, but, instead i see examples with cookies so, the question is about in which cases is better one over the others.

Jesus Carrasco
  • 1,355
  • 1
  • 11
  • 15
  • ngCookies is just a wrapper for reading/writing browser cookies, so this might answer your question: https://stackoverflow.com/questions/3220660/local-storage-vs-cookies – Ben Sep 14 '17 at 20:50
  • my question isnt about what is ngcookies is more to know... in which cases its better to use ng-cookies over the others. – Jesus Carrasco Sep 14 '17 at 21:22
  • 1
    That's what the link answers for you. If you're reading/writing from a sever you'd probably want ngCookies. If you're just reading/writing in the client you'd probably want the localStorage/Session option – Ben Sep 14 '17 at 21:29
  • thx dude it helps to understand how they work, and how can i now decide if needs cookie or webstorage. – Jesus Carrasco Sep 14 '17 at 21:35
  • actually i found https://stackoverflow.com/questions/29960037/localstorage-vs-sessionstorage-vs-cookies lol..... when i research never came to mind to put the question like this. lol. – Jesus Carrasco Sep 14 '17 at 21:36

0 Answers0