config.action_controller.session_store = :active_record_store
However, when hitting our system with say 10,000 API requests, we get
10,000 session objects in the database. Which seems like a big waste
Is there a way to prevent this?
Basically we want API requests to start with an empty in-memory-only
session hash which is dropped after the request finishes. Somewhat
related, we also don’t want to return an HTTP Header Set-Cookie:
PS. Using rails 2.3.11