Jump to content

Seperate Log ins


rick
 Share

Recommended Posts

Howdy all!

Got a question about how y'all set up your development/client/live sites.

I'm running lamp and virtual directories set up as follows:

domain.com

domain.com/client1

domain.com/client2

...

Trouble is, I have to log into each site admin with every access to the admin sections.

How can I set this up where I stay logged in to each site so that I can switch tabs between one or more site admin sections?

Thanks for the help!

Link to comment
Share on other sites

Set a different session name for every PW instance. From config.php:

/**
 * Session name
 * 
 * Default session name as used in session cookie. You may wish to change this if running
 * multiple ProcessWire installations on the same server. By giving each installation a unique
 * session name, you can stay logged into multiple installations at once. 
 * 
 * #notes Note that changing this will automatically logout any current sessions. 
 * @var string
 *
 */
$config->sessionName = 'wire';

  • Like 5
Link to comment
Share on other sites

Set a different session name for every PW instance. From config.php:

/**
 * Session name
 * 
 * Default session name as used in session cookie. You may wish to change this if running
 * multiple ProcessWire installations on the same server. By giving each installation a unique
 * session name, you can stay logged into multiple installations at once. 
 * 
 * #notes Note that changing this will automatically logout any current sessions. 
 * @var string
 *
 */
$config->sessionName = 'wire';

Dagnabit!  <-- My Walter Brennan impersonation.

That is exactly what I was looking for. I hate it when answers are staring you in the face but you just can't see them. And what makes me feel even more dumb, is I used that method years ago for just this reason.

Thanks BitPoet.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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