当前位置:主页 > 软件编程 > PHP代码 >

如何给phpadmin一个保护

时间:2021-01-08 12:20:57 | 栏目:PHP代码 | 点击:


如何给phpadmin一个保护 如何给phpadmin一个保护,即要输入密码才能进入phpadmin  
---------------------------------------------------------------  

在config.inc.php中:  
$cfgServers[$i]['auth_type']          =  'cookie';        //  Authentication  method  (config,  http  or  cookie  based)?  

有三种选择config  http  cookie  
config  :  按配置文件中的密码  (也就是标准方式)  这种方式没有认证  
http  :  使用HTTP认证  
cookie  :  使用COOKIE登录认证  

如果是使用IIS+PHP是没有办法使用HTTP认证的.这个功能只有在使用APACHE+模块安装的PHP上才能使用.  
你使用COOKIE方式吧,安全性也是很好的呀.  

您可能感兴趣的文章:

相关文章