phpmyadmin中的auth_type参数详解

phpmyadmin中的'auth_type'参数详解

$cfg['Servers'][$i]['auth_type'] string ['HTTP'|'http'|'cookie'|'config'|'signon']

Whether config or cookie or HTTP or signon authentication should be used for this server.

#注释:auth_type可选的参数有:http,cookie,config,signon

  • 'config' authentication ($auth_type = 'config') is the plain old way: username and password are stored in config.inc.php.
#注释:'config'认证($auth_type = 'config')是一种简单的方式,用户名和密码都配置在
      config.inc.php中,
config认证是使用得比较多的一种认证方式。
  • 'cookie' authentication mode ($auth_type = 'cookie') as introduced in 2.2.3 allows you to log in as any valid MySQL user with the help of cookies. Username and password are stored in cookies during the session and password is deleted when it ends. This can also allow you to log in in arbitrary server if $cfg['AllowArbitraryServer'] enabled.
#注释:'cookie'认证模式($auth_type = 'cookie'),在phpmyadmin2.2.3版本中特别推
      荐,它允许在cookie的基
础上你记录所有合法的MySQL用户,用户名和密码都保存在
      cookies中,知道会话(session)关闭,关闭
之后保存在cookies里面的密码会被删
      除掉。
  • 'HTTP' authentication (was called 'advanced' in previous versions and can be written also as 'http') ($auth_type = 'HTTP') as introduced in 1.3.0 allows you to log in as any valid MySQL user via HTTP-Auth.
#注释:'HTTP'认证方式(在之前的版本叫做'advanced',也可以写成'http')
       (
$auth_type = 'HTTP'),在1.3.0版本中被推荐,这个认证方式允许你通过
       HTTP-Auth认证用合法的MySQL用户登录。
  • 'signon' authentication mode ($auth_type = 'signon') as introduced in 2.10.0 allows you to log in from prepared PHP session data. This is useful for implementing single signon from another application. Sample way how to seed session is in signon example: scripts/signon.php. You need to configure session name and signon URL to use this authentication method.
#注释:'signon'认证为单点登录模式。我没有使用过。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值