Ryan
Ryan

Reputation: 21

Simple question about session

I came across this example from Ruby's security page (http://guides.rubyonrails.org/security.html). It poses this scenario:

I'm a little confused, as I always understood that the session cookie's value is merely an identifier for the server-controlled session state. This example is saying that the cookie's state controls the session's state and that states of session on the server are maintained over time.

Can someone explain this? Thanks.

Upvotes: 2

Views: 68

Answers (1)

Danny Thomas
Danny Thomas

Reputation: 2199

That's true for server-side sessions, however this example is from 2.6 Replay Attacks for CookieStore Sessions. CookieStore stores what would usually be persisted in a server-side session in the cookie, and therefore on the client which makes it vunerable to the replay attack in the example.

Upvotes: 2

Related Questions