开发者

User management in asp.net without using cookie or session

开发者 https://www.devze.com 2023-01-28 06:13 出处:网络
Is it possible to perform user management (store user info, login , logout etc) without using session or cookie?

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

Than开发者_如何学Goks in advance.


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.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消