views:

204

answers:

5

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.

+2  A: 

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

MatthewMartin
+2  A: 

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

RichardOD
+2  A: 

You could use Isolated Storage.

Austin Salonen
+1  A: 

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

Mike Brown
A: 

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%28VS.80%29.aspx

TimothyP