WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Wordpress, is it possible:

  • To "make my current browser" to get "logged-in" to the a WP site, from a script in my localhost?

Means, i will be running a script in my localhost:

  • http://localhost/do_login.php

And after that, in the same browser, when i go to:

  • https://www.my_remote_wpsite.com/wp-admin

I should already be logged in there.
So my local script will make my current browser logged-in into the remote WP site.

How can it be done please?

share|improve this question

Can't be done without a lot of wotk, cookies are sent only to the host doing the login. If your webserver does the login then the browser don't have the cookies.

I guess you can write some script that imports cookies from your seb server to your browser, but that doesn't sound like something easy to do as you will probably need to write an extension to the browser

share|improve this answer
You don't want to send cookies around. – kaiser May 26 '15 at 10:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.