如何给phpadmin一个保护

作者:简简单单 2008-01-11

如何给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方式吧,安全性也是很好的呀.    

相关文章

精彩推荐