rick Posted January 31, 2016 Share Posted January 31, 2016 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 More sharing options...
adrian Posted January 31, 2016 Share Posted January 31, 2016 If I understand correctly, just using different browsers for different logins can be helpful. Also, the user account switcher in this horst's ALIF module (https://processwire.com/talk/topic/11666-alif-admin-links-in-frontend/) can also be very useful. Link to comment Share on other sites More sharing options...
BitPoet Posted January 31, 2016 Share Posted January 31, 2016 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'; 5 Link to comment Share on other sites More sharing options...
tpr Posted January 31, 2016 Share Posted January 31, 2016 I use separate browser profiles, mostly one per project, but you can create more too. Read more in my blog post: http://blog.rolandtoth.hu/post/61202386954/per-project-chrome-instances 1 Link to comment Share on other sites More sharing options...
rick Posted January 31, 2016 Author Share Posted January 31, 2016 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 More sharing options...
Recommended Posts