I am brand new to drupal and I love it so far.
I have developed a few test sites (drupal 6.1) on a single apache server. I used the technique posted as 'a more secure drupal multi-site installation) http://justinhileman.info/blog/2007/06/a-more-secure-drupal-multisite-in...
That worked like a charm too.
My problem is that I have added one test user other than the administrator, so that I can test things out.
When I am logged in as administrator and make changes, it would be nice to login a regular user and try out the changes on the fly.
However, I now can't seem to login more than one person at a time (via different windows/tabs in same browser). I can do this via running another browser on the same PC.
I have been trying to read the general discussions regarding this type of problem.
Is it basically a browser cache problem, or a drupal session problem? Can it be fixed with the 'autologout' module?
It sure would be nice to not have to logout as administrator every time I want a regular user to try something out on the same machine and in the same browser.
As a side note, I was trying out Ruby on Rails this past year, and the way sessions are set up there, it can accomodate any number of user logins on the same browser and same computer. I don't know how they do it, or if their technique would be helpful here.
Comments
masquerade
Have you tried the masquerade module:
http://drupal.org/project/masquerade
There's no formal 6.x release yet, but there is a patch:
http://drupal.org/node/191839
Thanks Ryan Ernst its nice
Thanks Ryan Ernst its nice to know about this module.
Cheers.
Yes, thanks for lettings me
Yes, thanks for lettings me know about the masquerade module. It is just what is needed.
In drupal, the user details
In drupal, the user details are stored in session, browser session is used so multi users login (even in multiple tab) is not possible. But if you use multiple different type of browsers say firefox and IE, you can login with a user for each browser.
Hope this will help
Cheers.
Yes, using different
Yes, using different browsers, one for each user is the quickest solution I think, which I often use. Apart from Firefox, Opera is another additional one.
It also helps you test
It also helps you test cross-browser compatibility as you go.
you can also use multiple
you can also use multiple firefox profiles (to start multiple instances of firefox) simultaneously.
Even easier 8¬)
A HOT tip?
IF your webserver is properly setup to server both "www.MyDomain.com" and "MyDomain.com", most will be, then visits to these sites are treated as completely different sessions. You can view the website in one tab of a browser as an anonymous user of "www.MyDomain.com" and in a different tab of the same browser be logged in as an autheticated user of "MyDomain.com"
By having multiple domains pointing to the same website (e.g. "www.MySite.com" & "www.MySite.co.uk") or, more practically, if you set your web-server to use sub-domains to point to your website (e.g. "test1.Mydomain.com", "test2.Mydomain.com") you can increase further to have as many different sessions as you want in different browser tabs or windows - therefore as many different logged on users as you want.
If your server does not serve "MyDomain.com" then I suggest that you arrange this to be fix for visitors convenience.
Regards
John Bryan
www.ALT2.com
Application Integration Specialists
Tel: UK 08700 3456-31
...
Your server should be set up to serve up www.example.com and example.com consistently with rewrite rules. Not doing so and serving both possibilities will hurt your search engine results. For me, the way you describe would be an improperly set-up server, in regards to the way it's handling those kinds of requests.
The other suggestions are good but its easier to open multiple browsers, especially since its good to check your site in all your target browsers. I also find it easier to keep track of what I'm using each browser for than trying to remember which tab I was using for what, e.g. Opera = adminstrator, IE = anonymous user, Firefox = authenticated user or anything I need to use Firebug and Webdeveloper for.
Rewrite rules for alternate domains
If I have the following domains how do I set it up as you suggest - i.e. rewrite rules redirecting so that there is only one resulting domain. e.g. if I have:-
www.example.com
example.com
www.example.info
example.info
www.example.net
example.net
Regards
John Bryan
www.ALT2.com
Application Integration Specialists
Tel: UK 08700 3456-31
.htaccess
The default .htaccess file distributed with Drupal contains a starting point on your problem. I've included the line numbers (from my text editor)
69 # If your site can be accessed both with and without the 'www.' prefix, you
70 # can use one of the following settings to redirect users to your preferred
71 # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
72 #
73 # To redirect all users to access the site WITH the 'www.' prefix,
74 # (http://example.com/... will be redirected to http://www.example.com/...)
75 # adapt and uncomment the following:
76 # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
77 # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
78 #
79 # To redirect all users to access the site WITHOUT the 'www.' prefix,
80 # (http://www.example.com/... will be redirected to http://example.com/...)
81 # uncomment and adapt the following:
82 # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
83 # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
Choose *one* (either with 'www' or without) and adapt it for your needs. The Apache mod_rewrite documentation may come in handy. If instead you require assistance with your apache configuration please feel free to contact me.