Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Cookies vs. isolated Storage

Cookies vs. isolated Storage

Scheduled Pinned Locked Moved WPF
visual-studiocomquestiondiscussion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ray Cassick
    wrote on last edited by
    #1

    Does anyone here have any thoughts or comments on this? Because of the way that Silverlight apps run it seems to me that it would be simpler to store stuff that would typically go into a cookie in isolated storage. However, the users expectation to be able to clear data by using the Internet properties window would not (I think) have an impact any any of these stored settings so... Thoughts?


    LinkedIn[^] | Blog[^] | Twitter[^]

    M G 2 Replies Last reply
    0
    • R Ray Cassick

      Does anyone here have any thoughts or comments on this? Because of the way that Silverlight apps run it seems to me that it would be simpler to store stuff that would typically go into a cookie in isolated storage. However, the users expectation to be able to clear data by using the Internet properties window would not (I think) have an impact any any of these stored settings so... Thoughts?


      LinkedIn[^] | Blog[^] | Twitter[^]

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      Even though they can be used the same way, they are different. Isolated storage provides a complete virtual file system to a restricted application, which is much more robust than cookies. I don't have good "answer" for this, but I would say - examine the pros and cons of both and use what's appropriate. :)

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      1 Reply Last reply
      0
      • R Ray Cassick

        Does anyone here have any thoughts or comments on this? Because of the way that Silverlight apps run it seems to me that it would be simpler to store stuff that would typically go into a cookie in isolated storage. However, the users expectation to be able to clear data by using the Internet properties window would not (I think) have an impact any any of these stored settings so... Thoughts?


        LinkedIn[^] | Blog[^] | Twitter[^]

        G Offline
        G Offline
        GuinnessKMF
        wrote on last edited by
        #3

        Put a GUID in the cookie, store that GUID in your isolated storage, if they go to the page and the GUID is missing then wipe the part of the isolated storage you would have expected the user to "clear" by manually clearing it. This way you can properly clear user data, but get the benefits of using local storage instead of a cookie. (If it's a security issue, put a key in the cookie instead of a GUID).

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups