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
Post a Comment