how to code something
id:seinzumtode
SinatraでSessionによるログイン管理
https://dyama.org/2015/03/sinatra-mongoidで簡易ユーザセッション管理/