Spring naar de inhoud
  • Inloggen
  • Registreren
WordPress.org

Nederlands

  • Thema's
  • Plugins
  • Nieuws
  • Ondersteuning
    • Documentatie
    • Forums
  • Over
  • Community
    • Meetups
    • WordCamps
  • Contact
  • WordPress downloaden
WordPress downloaden

Plugins

  • Mijn favorieten
  • Beta-testen
  • Ontwikkelaars

Deze plugin is niet getest met de laatste 3 grotere versies van WordPress. Mogelijk wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

Download

root Cookie

Door Nick [LINICKX] Bettison and Vizion Interactive, Inc
  • Details
  • Beoordelingen
  • Installatie
  • Ontwikkeling
Ondersteuning

Beschrijving

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

Schermafdrukken

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

Installatie

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)

FAQ

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.

Beoordelingen

Oh god just thanks

powerofsoul 25 mei 2019
Thanks for this plugin... It saved my ass

awesome !!

mildsoft 12 augustus 2018
awesome !!

THANK YOU!!

wp.kytten 14 juli 2017
Even after so much time since the last update, your plugin worked perfectly and helped me fix my website. Thank you so much!!
Lees alle 5 beoordelingen

Bijdragers & ontwikkelaars

“root Cookie” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers
  • linickx
  • Scott Kingsley Clark

Vertaal “root Cookie” naar jouw taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

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.

Meta

  • Versie: 1.6
  • Laatst bijgewerkt: 11 jaar geleden
  • Actieve installaties: 600+
  • WordPress versie: 3.2 of nieuwer
  • Getest t/m: 3.3.2
  • Taal:
    English (US)
  • Tags:
    authenticationcookieloginlogoutsubdomains
  • Geavanceerde weergave

Waarderingen

Bekijk alle
  • 5 sterren 5
  • 4 sterren 0
  • 3 sterren 0
  • 2 sterren 0
  • 1 ster 0
Log in om een beoordeling te versturen.

Bijdragers

  • linickx
  • Scott Kingsley Clark

Ondersteuning

Iets te melden? Hulp nodig?

Het supportforum bekijken

Doneren

Wil je de groei van deze plugin ondersteunen?

Doneer aan deze plugin

  • Over
  • Nieuws
  • Hosting
  • Doneren
  • Swag
  • Documentatie
  • Ontwikkelaars
  • Raak betrokken
  • Leren
  • Showcase
  • Plugins
  • Thema's
  • Patronen
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Publieke code
WordPress.org
WordPress.org

Nederlands

  • Onze Facebook pagina bezoeken
  • Ons Twitter account bezoeken
  • Bezoek ons Instagram account
  • Bezoek ons LinkedIn account
Code is poëzie.