.NET - 单击一次/智能客户端应用程序 - 浏览器 Cookie 等效项?

发布于 2024-08-03 14:57:25 字数 192 浏览 5 评论 0原文

.NET 3.5 上的智能客户端/Click Once 应用程序开发是否有相当于浏览器 cookie 的功能?在某些地方,我可以将 cookie 存储在用户的计算机上而不是服务器上。

或者换句话说 - 您可以从沙盒 Click-Once 应用程序写入哪个文件位置,而不会违反良好的安全实践。如果不需要的话,我不想将应用程序从沙箱中取出并以提升的权限运行。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

北城半夏 2024-08-10 14:57:25

查看隔离存储。这是ClickOnce 应用的特定博客文章。

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

一向肩并 2024-08-10 14:57:25

隔离存储。它类似于文件系统 API,但更安全,但使用起来可能更麻烦一些。

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

半山落雨半山空 2024-08-10 14:57:25

您可以使用隔离存储

You could use Isolated Storage.

能否归途做我良人 2024-08-10 14:57:25

比 Cookie 更好的是,您可以使用隔离存储 API 在客户端计算机上存储文件。

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

我三岁 2024-08-10 14:57:25

我不确定你在这里问什么。
你想存储数据吗?您可以在独立存储中做到这一点,
尽管我发现自己在 System.Environment.SpecialFolder.AppData 中保存了很多。

独立存储: http://msdn.microsoft.com/ en-us/library/3ak841sy(VS.80).aspx

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文