简体   繁体   English

基本用户管理,用于自定义站点

[英]Basic User Management, For Custom Site

I have been looking at either coding from scratch a basic login page + session management user validation for a new website I intend to build. 我一直在寻找从头开始编码的基本登录页面+会话管理用户对我打算建立的新网站的验证。

I am wary that this may not be the safest thing for me to do on my own, so I am contemplating using joomla or wordpress for basic user authentication and then having the rest of the site pretty much customised. 我很警惕,这可能不是我自己最安全的事情,因此我正在考虑使用joomla或wordpress进行基本的用户身份验证,然后对网站的其余部分进行定制。 Is this a good idea, or am I going against how they were designed and is there a better framework I could be using for this simple task? 这是一个好主意,还是我反对它们的设计方式,是否有一个更好的框架可以用于此简单任务? I am not too concerned with language but asp.net or php are definitely preferred. 我不太在意语言,但绝对优选asp.net或php。

对于ASP .NET,您应该使用ASP .Net成员资格 。有关实现ASP .NET成员资格的一系列教程,请参见此处。

I use Joomla allot, but if everything else is custom, it would probably hold you back rather than help. 我使用Joomla分配,但如果其他所有内容都是自定义的,则可能会使您退缩而不是提供帮助。

I would take a look at http://codeigniter.com and use one of the authentication plugins. 我将看看http://codeigniter.com并使用身份验证插件之一。

stackoverflow uses OpenIDs, which I think is pretty handy. stackoverflow使用OpenID,我认为这非常方便。 This will manage your authentication, but you'll still need to "register" the users (ie their user name and profile and OpenID token) on your server. 这将管理您的身份验证,但是您仍然需要在服务器上“注册”用户(即他们的用户名和个人资料以及OpenID令牌)。 But I think authentication is the biggest headache, so with that out of the way, the rest is pretty standard. 但是我认为认证是最大的麻烦,因此,不用担心,其余的工作就相当标准了。

I like WordPress a lot and think it's a good tool for certain things, but I don't think I'd use its codebase as a starting point for a new app. 我非常喜欢WordPress,并认为它是某些事情的好工具,但我不认为我会将其代码库用作新应用程序的起点。 Try a more generic web-app framework in your preferred language... Yii or CakePHP if you want PHP... you'll find user/session/authentication plugins to get you started, and then you can go from there, with a relatively blank slate and the handy don't-reinvent-the-wheel tools a framework provides. 使用您喜欢的语言尝试一个更通用的Web应用程序框架... Yii或CakePHP(如果您想要使用PHP)...您会找到用户/会话/身份验证插件来开始使用,然后可以从那里开始相对空白的框架和方便的工具,不要重新设计框架提供的工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM