Performance: Session handling
MEDIUM IMPACT
Session handling affects page load speed and interaction responsiveness by managing user data storage and retrieval during requests.
Rails.application.config.session_store :cookie_store, key: '_app_session', expire_after: 30.minutes, secure: true
Rails.application.config.session_store :cache_store, expire_after: 30.minutes| Pattern | Server Memory Usage | Request Latency | Network Payload | Verdict |
|---|---|---|---|---|
| Cache store sessions | High | Medium | Low | [X] Bad |
| Cookie store with large data | Low | High | High | [X] Bad |
| Cookie store with minimal data | Low | Low | Low | [OK] Good |
| Caching session data in controller | Low | Low | Low | [OK] Good |