English 中文(简体)
PHP/MySQL/Apache执行最佳标志[封闭]
原标题:Best login implementation in PHP/MySQL/Apache [closed]

您书面文件涉及的代码问题必须在问题本身说明具体问题——和列入有效代码以复制。 见SSCCE.org

Closed 10 years ago.

我正在建造一个用户可以登录的新网站。 我看到三种可能的选择:

1,经典类型标识:

<form action="/login.php" method="POST">

</form>

提交年份改为<代码>login.php,如果成功,则予以确认和重新指示

2. ajax type login:

Same as above but do an ajax call instead and then the javascript redirects.

3. iframelogin:

1. 组合/开放式

这是什么最安全、最妥善的方法?

最佳回答

在我看来,备选方案1 &办法2应当使用员额,在你的法典中,你应当确保请求是员额。 如果你希望申请是多余的,那么你还应在其它届会上补充反对偷窃的逻辑,但这是对开发商和申请的优惠。 i 发现影响是邪恶,许多黑客利用 if果来 ha住用户账户。 开放是一种值得信赖的标志,正在得到更广泛的采纳,也是开放式版面。 i 知道它们使用iframe方法,但核查增加了一倍,而且i 相信需要https来执行这些类型的记录。

again all of this is just my opinion and mostly reliant on the developer s design and business needs/requirements of the application.

希望这将有助于:

问题回答

暂无回答




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Remotely authenticating client Windows user on demand

Suppose I am writing a server for a particular network protocol. If I know that the client is running on a Windows machine, is it possible for my server to authenticate the Windows user that owns the ...

Role/Permission based forms authorizing/authentication?

While looking into forms authorizing/authentication, I found that it is possible to do role based authorizing by adding an array of roles to a FormsAuthenticationTicket. That way I can write User....

热门标签