跳至主要內容
  • 登入
  • 註冊
WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress

外掛目錄

  • 我的最愛
  • Beta 版測試
  • 開發者資訊

這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

下載

root Cookie

由 Nick [LINICKX] Bettison and Vizion Interactive, Inc 開發
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

If you want to integrate the wordpress authentication magic into another script within your website you may come across authentication issues because your code cannot read the wordpress cookie.

By default the wordpress cookie exactly matches the URL of your installation, this plugin removes any subfolders from the cookie so that your whole domain has access to it.

For Example if you have wordpress installed in http://www.mydomain.com/wordpress/ any php stored in http://www.mydomain.com/mymagiccode/ cannot see the cookie due to browser security. This plugin changes the path to http://www.mydomain.com/ so that any php code on your site can access the cookie, so in our above example http://www.mydomain.com/mymagiccode/checkauthentication.php can now check the cookie to see if you have logged into wordpress.

NEW: Now you can allow cookies to be used across subdomains! Here are some examples that you can now access cookies from:

  • http://www.mydomain.com/
  • http://test.mydomain.com/
  • http://www.mydomain.com/blog/
  • http://test.mydomain.com/new/
  • http://forum.mydomain.com/getwordpresslogin.php

Multi-blog Installs

It is possible to use this plugin such that if you are logged into one WordPress site, then you are auto-magically logged into the second, but there are some caveats!

  1. The Username & Password MUST be the same on Both!
  2. The Security Keys https://codex.wordpress.org/Editing_wp-config.php#Security_Keys Need to be the same on Both!

Support

Comments on my website are welcome, but please post in this WordPress Forum

螢幕擷圖

  • The Admin interface, optional for if you want to change the domain.

安裝方式

This section describes how to install the plugin and get it working.

e.g.

  1. Upload root-cookie.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Optinally enable subdomains support in admin dashboard
  4. Log out
  5. Log in
  6. Done :o)

常見問題集

What is root cookie path support?

This is the basic functionality of the plugin, it removes the path from the cookie.
e.g
cookie set as www.domain.com/wordpress becomes www.doamin.com

How to I enable root cookie path support?

You don’t need to, by default the path is removed from the cookie just by enabling it

What is root cookie subdomain support?

This is new as of version 1.5, root cookie can now change the wordpress cookie to be accesiable across subdomains.
e.g.
cookie set as www.domain.com becomains domain.com

How to I enable root cookie subdomain support?

In the wordpress administrator dashboard, select root cookie and tick the box!

How do I manually set the domain / subdomain of the cookie?

In the wordpress administrator dashboard, select root cookie and unselect “Allow Cookies to go across All Subdomains” and in the “Domain Name” box type in you domain such as domain.com or domain.co.uk

root cookie subdomains doesn’t work for me!

Try maunally setting the cookie, see above.

使用者評論

Oh god just thanks

powerofsoul 2019 年 5 月 25 日
Thanks for this plugin... It saved my ass

awesome !!

mildsoft 2018 年 8 月 12 日
awesome !!

THANK YOU!!

wp.kytten 2017 年 7 月 14 日
Even after so much time since the last update, your plugin worked perfectly and helped me fix my website. Thank you so much!!
閱讀全部 5 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈root Cookie〉的開發相關工作。

參與者
  • linickx
  • Scott Kingsley Clark

將〈root Cookie〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

1.6

  • WordPress 3.3 Compatability Update, hat tip for Joe Auty (http://www.netmusician.org) for Rasing.
  • Logout Enhancement
  • Bug fix “undefined method WP_Error::get_items”
  • Contextual Help

1.5

  • Added options panel to allow for cookies to be used across subdomains.
  • Subdomain can be guessed or manually set
  • root cookie News & Tutorials added to admin page

1.4

  • WordPress 2.7 Compatability Update, credz to Edward Laverick (http://www.rndout.com/) for Raising.

1.3

  • Updated to support new WP2.6 Cookies, credz to Scott Kingsley Clark (http://www.vizioninteractive.com) for kicking my ass into getting this done!

1.2

  • Added logout function, as default on didn’t work, thanks Aja! ( http://www.ajalapus.com/ )

1.1

  • Added the safety hook ‘if(!function_exists(‘wp_setcookie’)’ since WP2.1 crashed out.

1.0

  • Original Release.

中繼資料

  • 最新版本: 1.6
  • 最後更新: 11 年前
  • 啟用安裝數: 600+
  • WordPress 版本需求: 3.2 或更新版本
  • 已測試相容的 WordPress 版本: 3.3.2
  • 語言:
    English (US)
  • 標籤:
    authenticationcookieloginlogoutsubdomains
  • 進階檢視

評分

檢視全部
  • 5 星 5
  • 4 星 0
  • 3 星 0
  • 2 星 0
  • 1 星 0
登入以提交評論

參與者

  • linickx
  • Scott Kingsley Clark

技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

查看技術支援論壇

贊助

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於我們
  • 最新消息
  • 主機託管
  • 贊助基金會
  • Swag
  • 線上說明
  • 開發者資源
  • 共同參與
  • Learn
  • 展示網站
  • 外掛目錄
  • 佈景主題目錄
  • 區塊版面配置目錄
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • 隱私權
  • Public Code
WordPress.org
WordPress.org

Taiwan 正體中文

  • 造訪我們的 Facebook 粉絲專頁
  • 造訪我們的 Twitter 帳號
  • Visit our Instagram account
  • Visit our LinkedIn account
程式碼,如詩