3

The worst thing about cookies is that almost all pages forget / don't realize you have to handle cookie ( -> localstorage ) permissions!

Comments
  • 0
    What do you mean with cookie permissions?
  • 1
    @PonySlaystation If a user doesn't allow cookies on a page ( and thus localstorage in general ), the localstorage object won't be accessible.

    Either you check for it being there and react to it, or you insert a fake memory based one when it's not available.
  • 0
    Do you find many sites breaking over this - or is it just that they thrown an uncaught exception when attempting to save to localStorage but keep functioning anyways and just re-fetch more data on subsequent requests since they can't find whatever was supposed to be stored?
  • 0
    @jiraTicket Quite a lot of sites break actually, often frameworks / libraries don't handle it ..

    The best thing is, they usually first load the page, everything is fine for a second or two and then error out and display an error with something along the lines of 'Couldn't load the page' YEAH RIGHT!
  • 0
    Why would someone not want those tasty cookies
  • 1
    @joewilliams007 They should have called them stains or something ..
Add Comment