不使用cookie或session的asp.net中的用户管理

发布于 2024-10-05 12:18:27 字数 64 浏览 0 评论 0原文

是否可以在不使用会话或cookie的情况下执行用户管理(存储用户信息、登录、注销等)?

提前致谢。

Is it possible to perform user management (store user info, login , logout etc) without using session or cookie?

Thanks in advance.

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

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

发布评论

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

评论(3

裂开嘴轻声笑有多痛 2024-10-12 12:18:27

有 cookieless 会话

http://msdn.microsoft.com/en-us/library /aa479314.aspx

如果您根本不需要任何服务器状态,则需要继续在 URL 中传递状态。对于登录,您可以使用浏览器可以理解的 HTTP 身份验证。

There are cookieless sessions

http://msdn.microsoft.com/en-us/library/aa479314.aspx

If you don't want any server-state at all, you need to keep passing the state around in URLs. For login, you can use an HTTP Auth that the browser understands.

撩起发的微风 2024-10-12 12:18:27

您可以尝试用户配置文件:
http://quickstarts.asp.net/quickstartv20/aspnet/doc/profile /default.aspx

但是,即使您没有在 cookie 中显式存储任何内容,如果您想永久存储某些内容,ASP.NET 仍会在客户端 cookie 中存储诸如 sessionid 之类的内容。

You can try User Profile:
http://quickstarts.asp.net/quickstartv20/aspnet/doc/profile/default.aspx

However, even if you don't explicitly store anything in cookie, ASP.NET will still store something like sessionid in your client cookie if you want to permanently store something.

不一样的天空 2024-10-12 12:18:27

如果您不想使用 cookie,可以通过将以下设置添加到应用程序的 web.config 来激活无 cookie 会话模式。

<sessionState cookieless="true" />

使用此选项,会话 ID 会插入 URL 中的特定位置。请阅读此处了解更多信息。

If you don't wish to use cookies, cookieless session mode can be acivated by adding the following setting to your application's web.config.

<sessionState cookieless="true" />

With this option, the session ID is inserted in a particular position within the URL. Read here for more info.

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