当前位置: 动力学知识库 > 问答 > 编程问答 >

session - Identity without individual user accounts in ASP.NET

问题描述:

I am developing an ASP.NET 5 web application which allows users to play chess anonymously (without creating an account) against each other.

I need to maintain the state for the individual user during the game, what is the best way to achieve this?

Is there a way to configure ASP.NET Identity for the needs of my application?

Or should I use sessions? Or something else?

Any advice and suggestions will be greatly appreciated.

网友答案:

The easiest way in ASP.NET is to use Cookies, which allow you to have the user save their session state on their end. Here is the ASP.NET Cookies Overview on MSDN, which covers everything you will need to know to get started.

分享给朋友:
您可能感兴趣的文章:
随机阅读: