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'認證爲單點登錄模式。我沒有使用過。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章