Using Basic http Authorization to Implement a WebObjects Login Panel

In this section, we'll reimplement the user login page using the browser's built-in login panel and the http basic authorization protocol.

This section is optional for those who want to look at alternative means of providing user login and client-side state storage. Implementing user login via the browser negates the need to have a custom cookie mechanism to store the user login and passwords because most browsers automatically provide this functionality.

As you will soon see, this solution is no more complex than the cookie mechanism of remembering user logins. In fact, because it doesn't have to use cookies, it could be considered the superior solution.

For the first part ...

Get WebObjects® Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.