Skip to content

Comment on Using www-authenticate for user authenticationparent

Comments

As the article states:

the nice thing about this is that the browser will keep sending the credentials to subsequent requests of the same domain until it receives a 401 status as response.

You don't need to set anything, just send a 401 if you want the browser to stop sending credentials. You don't even need cookies.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.