asp.net 会员帐户有效期至

发布于 2024-12-16 15:37:18 字数 109 浏览 2 评论 0原文

我正在开发一个应用程序,要求用户帐户在未续订会员资格时自动禁用。

是否有一种简单的方法可以使用 ASP.NET 会员资格框架来执行此操作,并且可以定义/设置到期日期?

谢谢

I'm developing an application that requires user accounts to automatically be disabled if they haven't renewed their membership

Is there an easy way to do this with ASP.NET membership framework, where it is possible to define/set an expiration date?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魂归处 2024-12-23 15:37:18

我认为,就您而言,您可以将个人资料提供程序与会员资格提供程序一起使用。只需创建一个到期日期的配置文件属性,并在新用户注册时设置它。更新站点的登录功能以检查该配置文件属性中的用户是否到期。

这是我能看到的唯一最简单的方法。

如果您需要更多帮助,请告诉我。

I think, in your case, you can use profile provider along with membership provider. Just create a profile property for expiry date, and set it when new user is registered. Update login functionality of site to check for expiry of user in that profile property.

That's the only simplest way I can see.

Let me know if you need more help.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文