Is there any way (apart from HTTP authentication, which I gather is inherently insecure over the Internet?) for a ‘real life’ website to handle logins and authentication rather than the traditional way, using session cookies?
Is there any way (apart from HTTP authentication, which I gather is inherently insecure
Share
HTTP digest authentication (which is quite a different beast from HTTP basic authentication) is quite secure over straight HTTP, and not at all difficult to implement on the server. Nothing is sent over the wire that could reveal what the password is, just information that allows the client to demonstrate to the server that they have the correct password.
If you want a decent explanation of how to implement HTTP digest authentication in your application, Paul James has an excellent article on it.
The only real problem with HTTP authentication is in the browsers themselves: the UI is terrible, but that can be overcome with some Javascript.
Addendum: This answer is almost a decade old. These days, you should really be using HTTPS regardless of any other considerations.