This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I also know how to parse to returning username and password to authenticate the request. So this is okay.
However, I do not know is how to log out of this authorized session without closing the browser. Well, that's not entirely true. I do seem to be able to log out by resending those two response headers, but I get a problem where the first authentication window that pops up won't accept an appropriate username and password. If I cancel the first request, then try to return to the site, the next authentication window responds as expected.
So I'm a little confused at what I'm doing wrong. Any suggestions?