Jump to content

Stay logged in on several sites locally?


joe_g
 Share

Recommended Posts

Hi there,

Locally I can only be logged in to one PW install at a time. It's becoming a bit cumbersome, since I'm juggling about five different project at a time (all PW installs), so every time i switch project I need to login again. 

Is there any way to avoid this?

thanks!,

J

Link to comment
Share on other sites

Add this to your site/template/admin.php before the require() line in there

$whitelist = array(
    '127.0.0.1'
);

if(in_array($_SERVER['REMOTE_ADDR'], $whitelist)){
    if(!$user->isLoggedin()) $session->login("admin", "xxx");
}
  • Like 6
Link to comment
Share on other sites

Also (this may be helpful), I find it sweet to use multiple users (or profiles) in Chrome. Because each instance has its own session storage you can be logged in in one instance of Chrome and logged out in the second, so you see both the admin and client versions of the website you are developing (assuming they differ) without having to constantly login/logout.

.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...