简体   繁体   中英

HTTP Authentication with PHP

I am creating sessions if the entered username matches the one stored in my database by

$_SESSION['username'];

Now I recently learned about HTTP AUTHENTICATION with PHP using sessions to secure them.

How do I implement them?

Thanks.

Try this from the PHP manual:

http://php.net/manual/en/features.http-auth.php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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