The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Logging out of HTTP Basic Auth

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Logging out of HTTP Basic Auth Posted: Jun 19, 2005 7:15 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Logging out of HTTP Basic Auth
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

I thought people might be interested in an idea I had about HTTP BASIC_AUTH. The biggest problem with basic auth is that the user -cannot log out-. I've come up with a way to avoid this problem.

Let's assume that when the user visits your site, you're going to give him a cookie. The cookie has a session id. Generally with Basic Auth you have a Realm for where the user is getting access.

Instead of giving them an english realm like 'secure', give them the session id as the realm. When you do this, they respond their challenge based on the session id you've given them.

Now, when the user goes to log out - or closes their browser to invalidate their session cookie, you simply throw away their cookie and force them to get a new one. This means they get a new session id - which means the credentials for the basic auth are now wrong. This will cause them to be prompted to log back in again.

Vwalla, successful logout from HTTP's Basic Auth. Let me know if you use the idea.

Read: Logging out of HTTP Basic Auth

Topic: When WiFi drives less business Previous Topic   Next Topic Topic: Getting Started with eXtreme Programming: Toe Dipping, Racing Dives, and Cannonballs

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use