web services - Logout with HttpOnly cookie -


i can see httponly cookies good security, make logging out without server interaction impossible, right?1 when network fails, can't log out , leave. can imagine workaround, i'd ask first

  • does make sense handle case
  • are there standard solutions this?

1 assuming you're using them.

if logging out mean removing session cookie, no, cannot remove httponly cookies javascript. is, however, easy set two cookies, 1 httponly , 1 insecure, such combination of 2 valid session key. removing either cookie destroy session.

if service sensitive, make sense handle realistic threat scenarios, , 1 pretty realistic.

setting 2 cookies, 1 of httponly, common in standard csrf prevention technique. have not seen in specific scenario similar anti-csrf case, , looks obvious , easy application of general twoo-cookies idea.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -