Linux 软件免费装

root Cookie Path (subdomains)

开发者 sc0ttkclark
Nick Bettison - LINICKX
更新时间 2009年2月7日 00:22
PHP版本: 2.6 及以上
WordPress版本: 2.7

标签

cookie login authentication logout root path subdomain

下载

1.3

详情介绍:

If you want to integrate the wordpress authentication magic into another script within your domain 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. Modified from the original "root Cookie Path" plugin, you can now extend this same cookie functionality into your sub-domains. For Example if you have wordpress installed in http://one.mydomain.com/wordpress any php stored in http://two.mydomain.com/mymagiccode cannot see the cookie due to browser security. This plugin changes the path to http://.mydomain.com so that any php code on your site can access the cookie, so in our above example http://.mydomain.com/mymagiccode/test.php can now check the cookie to see if you have logged into wordpress. This however will not work if both sites do not share the same user / password combination.

安装:

  1. Unpack the entire contents of this plugin zip file into your wp-content/plugins/ folder locally
  2. Upload to your site
  3. Navigate to wp-admin/plugins.php on your site (your WP plugin page)
  4. Activate this plugin
OR you can just install it with WordPress by going to Plugins >> Add New >> and type root Cookie Path (subdomains)