2

Is there an equivalent to browser cookies for Smart Client / Click Once application development on .NET 3.5? Some place I can store cookies on the user's machine rather than the server.

Or to put it another way - what file location can you write to from a sandboxed Click-Once app that won't violate good security practices. I don't want to take the app out of the sandbox and run with elevated privileges if I don't have to.

BuddyJoe
  • 69,735
  • 114
  • 291
  • 466

5 Answers5

2

Isolated storage. It's like the file system APIs, but more secure and maybe a bit more cumbersome to work with.

MatthewMartin
  • 32,326
  • 33
  • 105
  • 164
2

Have a look at isolated storage. Here's a specific blog post for ClickOnce apps.

RichardOD
  • 28,883
  • 9
  • 61
  • 81
2

You could use Isolated Storage.

Austin Salonen
  • 49,173
  • 15
  • 109
  • 139
1

Better than cookies, you can use the Isolated Storage API to store files on the client machine.

Michael Brown
  • 9,041
  • 1
  • 28
  • 37
0

I'm not sure what you are asking here. Are you trying to store data? You can do that in Isolated Storage, although I find myself saving in the System.Environment.SpecialFolder.AppData a lot.

Isolated Storage: http://msdn.microsoft.com/en-us/library/3ak841sy(VS.80).aspx

TimothyP
  • 21,178
  • 26
  • 94
  • 142