The "realm" field of HTTP basic auth is a really bad place to put helpful status messages like "Your account has been locked." In fact, it's a really bad place to put anything except the name of the realm (or some other string that never changes). If you try to be clever and put other strings into it depending on state, browsers will think it's two or more totally different types of authentication and in some cases can go into an infinite loop.

![3 comments [Comments]](/nb/assets/comments.png)
Posted by Yoz at Wed Jul 28 2004 08:43
Posted by Leonard at Wed Jul 28 2004 10:10
Posted by Yoz at Wed Jul 28 2004 11:19