by luikore · 13y ago · 0 comments
CookieStore does its own job correctly: it has an "httponly" option which prevents being stolen by injected javascript, and it checks signature which prevents content being modified or forged. But it's not CookieStore's job to prevent sensitive content being watched. It's HTTPS's job.
Changing session store to a database or memory store won't
fix it: a session id is still required on the client side,
then your session is still hijacked because the attacker
still gets the session id.
The bug specifically addresses logging out.When you store a record of the session on the server side (with the session ID you mention), you clear that session record during logout; the session is now gone, and cookie isn't valid anymore.
(With the cookie-only approach, the server will continue to accept a cookie that you wanted to have cleared.)
When I click log out, I know I'm logging out on this
browser but not other browsers.
Different browsers get different sessions. ... it doesn't limit you from storing and checking
things on the server-side.
Correct, but you basically end up reimplementing parts of ActiveRecord::SessionStore anyway.