ASP.NET membership get UserId of anonymous user

别等时光非礼了梦想. 提交于 2019-12-06 12:04:30

As far as I know it is about access. If your web site has modules or pages that do not need access. You need to create a user first in the aspnet users table. It could be that this anonymous user is not created correctly leading to the null value.

Additionally if you want to track these anonymous users, you have to set allowanonymous to true in your profile provider configuration.

See this article for more help http://www.odetocode.com/Articles/440.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!