ASP .NET匿名用户没有得到存储在数据库 [英] ASP .NET anonymous users not getting stored in database

查看:202
本文介绍了ASP .NET匿名用户没有得到存储在数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在MVC设置匿名用户。由于某种原因,它不会在数据库中存储的用户。我已经添加了以下在web.config

I'm trying to setup anonymous users in MVC. For some reason it wont store the users in the database. I have added the following in the web.config

<anonymousIdentification enabled="true" />

它成功创建,当我访问该网站,但不会在数据库中创建用户.ASPXANONYMOUS的cookie。这是不是我必须做手工?

It successfully creates the .ASPXANONYMOUS cookie when i visit the site but doesn't create the user in the database. Is this something i have to do manually?

推荐答案

这将被保存,如果你会尝试保存一些数据,例如像东西在该用户的个人资料。

It will be stored if you will try to save some data like for example something in this user's profile.

这篇关于ASP .NET匿名用户没有得到存储在数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆