Switch between authenticated users in Safari

May 09, '07 07:30:00AM

Contributed by: melo

Sometimes I need to test a site that's protected with basic authentication with several different users. Safari, unfortunately, does not have a logout function, to forget about basic authentication credentials. To work around this issue, just insert the login and password of the new account directly in the URL, just after the http://. For example, if your URL is something like http://some.protected.site/, use this:

http://new_user:new_password@some.protected.site/
Safari will then switch to the new_user, and it will remember the switch in future visits.

Comments (10)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20070507052539475