Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个应用程序,如果用户帐户没有续订会员资格,则需要自动禁用他们
使用 ASP.NET 成员资格框架是否有一种简单的方法可以定义/设置到期日期?
谢谢
我认为,在您的情况下,您可以使用个人资料提供者和会员提供者。只需为到期日期创建一个配置文件属性,并在新用户注册时设置它。更新站点的登录功能以检查该配置文件属性中的用户是否过期。
这是我能看到的唯一最简单的方法。
如果您需要更多帮助,请告诉我。