As Rails developers, we run into Sinatra apps all the time: gems such as Resque which expose a dashboard via Sinatra, legacy Sinatra apps that run alongside a main Rails app, and Sinatra APIs embedded within a Rails app, to name a few examples. Here’s a common problem: how do you share authentication between the apps? It would be really convenient to be able to do something like this in our Sinatr
![How to Share a Session Between Sinatra and Rails](https://cdn-ak-scissors.b.st-hatena.com/image/square/beac31a4be8e4962e2fefc94fd70b667eb3e9cec/height=288;version=1;width=512/https%3A%2F%2Fimages.thoughtbot.com%2Fblog-images%2Fsocial-share-default.png)