将 ASP.NET 会员资格提供程序与现有用户数据库结合使用

发布于 2024-12-01 11:37:24 字数 349 浏览 0 评论 0原文

我目前正在.Net 中重写整个网站。当前网站是用foxpro编写的,并使用自定义逻辑、验证规则和Sql服务器表来存储和验证用户。

我想使用会员提供程序,但我有一个主要问题,我不知道如何克服。

新站点和旧站点都必须共享用户和凭据。用户必须能够在过渡阶段使用这两个网站,而无需单独更新其个人资料。

  1. 在不破坏现有系统的情况下实施Membership Provider 的最佳方法是什么?

  2. 我是否必须使用会员资格提供程序附带的所有表、视图、过程等?

  3. 我的逻辑有问题吗?会员提供商值得吗?

非常感谢任何教程或视频链接。

I'm currently re-writting an entire website in .Net. The current website is written in foxpro and uses custom logic, validation rules, and Sql server tables to store and authenticate users.

I want to use Membership Provider but I have one major problem that I'm not sure how to overcome.

Both, the new site and the old site have to share users and credentials. The users will have to be able to use both sites during the transition phase without having to update their profiles separately.

  1. What is the best way to implement Membership Provider without breaking the existing system?

  2. Do I have to use all the tables, views, procedures, etc that come with Membership provider?

  3. Is my logic flawed? Is Membership Provider worth it?

Any tutorial or video links are much appreciated.

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

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

发布评论

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

评论(1

滥情稳全场 2024-12-08 11:37:24

在过去的几天里,我一直在做更多的研究和阅读,看来要走的路是编写我自己的自定义会员提供程序。以下是我发现最有帮助的一些链接。

我想说的是,虽然编写自定义会员资格提供程序需要一些时间,但好处将远远超过所需的时间,因为它节省了很多其他编码。另外,它还保留了稍后转换为内置 .Net 会员资格提供商的选项。如果我确实想稍后切换,我所要做的就是更改 web.config 设置,在我的数据库中安装支持表并将当前用户隐藏到新的表集中。我不需要修改任何代码来完成转换,这很酷!

链接:

会员简介

创建自定义会员提供程序

自定义会员提供程序

分步自定义成员资格提供程序创建教程

Over the last couple of days, I've been doing more research and reading and it looks like the way to go is writting my own Custom Membership Provider. Below are some links I found most helpful.

I will say this, while writting the custom membership provider is going to take a little time, the benefits will far outweight the time it will take because it saves so much other coding. Plus it leaves open the option for converting to the built-in .Net membership provider latter on. If I do want to switch later, all I have to do is change the web.config settings, install the support tables in my DB and covert current users into the new set of tables. I shouldn't have to touch any of my code to complete the conversion which is cool!!!

Links:

Intro to Membership

Creating Custom Membership Provider

Custom Membership Providers

Step-By-Step Custom Membership Provider Creation Tutorial

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