Multiple http auth details on the same site + chrome save password functionality, is there any way to handle this case?

view story

http://superuser.com – Google Chrome seems to be saving passwords on a per site basis, but I'm developing a site where I'd like to have different http authentication details depending on the directory accessed AND have Chrome remember this. That is to say, http://site.com/a and http://site.com/b have different http user/password combinations. I'd like Chrome to remember both, such that when I enter http://site.com/a I'm accedding with the corresponding user/password combo for /a, and likewise for /b. If I use the built in function to save passwords in Chrome, the browser saves both user/password combinations for ht (HowTos)