Per-slice sessions in Hanami - Tim Riley
03-Oct-2025 492
One of the things I do in Hanami-land is provide support. I love doing this because it helps me understand all the contours of our framework as it meets the real world. Bringing your questions is seriously one of the most helpful things you can do for Hanami right now. (At this moment, Aaron would be telling you to join our Discord!)
A question that came up this week was about how to have separate Rack cookie sessions per slice.
You can achieve this by using the session middleware inside each slice in your routes:.
Per-slice sessions in Hanami - Tim Riley #ruby #rubydeveloper #rubyonrails #Per-slice #sessions #Hanami #Riley #hanami https://www.rubyonrails.ba/link/per-slice-sessions-in-hanami-tim-riley