[英]HTTP Authentication with PHP
I am creating sessions if the entered username matches the one stored in my database by 如果输入的用户名与数据库中存储的用户名相匹配,我将创建会话
$_SESSION['username']; $ _SESSION ['username'];
Now I recently learned about HTTP AUTHENTICATION with PHP using sessions to secure them. 现在,我最近了解了使用会话来保护它们的PHP的HTTP AUTHENTICATION。
How do I implement them? 如何实施?
Thanks. 谢谢。
Try this from the PHP manual: 从PHP手册中尝试以下操作:
http://php.net/manual/en/features.http-auth.php http://php.net/manual/zh/features.http-auth.php
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.