I'm using Rails 4 with cookie based session store, found that Rails 4 will give me a different cookie every time I refresh the page, but it can still identify me.
Compare it to another rack app which uses Rack::Session::Cookie
, it will only send Set-Cookie
for the first request, until some changes to session data were made.
Why are they designed differently? Is there any reason behind?