开发者

aspnet_Membership IP address

Is it a way to add "I开发者_高级运维P Address" field in aspnet_Users, and then control it when user try to login?


There is a Comment property on the MembershipUser object. You can do it to do whatever you want (it is a string).

http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.comment.aspx


I have not heard of anyone doing this. Probably with good reason because it doesn't sound like a good idea for a web application.

Consider, many web clients have dynamically allocated IP addresses from their ISP and so their IP address changes all the time, also, if multiple clients are using the one proxy, then you will have non-unique records for IP address.

If you want to employ IPsec then consider using the server firewall or IIS rather than a membership provider.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜