Omniauth Session expires when browser is closed
问题 In my rails 3 app I use Omniauth for the user authentication part (fb/twitter). Actually I follow this: https://github.com/RailsApps/rails3-mongoid-omniauth https://github.com/RailsApps/rails3-mongoid-omniauth/wiki/Tutorial But, when I close the browser session expires and I need to login again. How can I keep the session for returning users? Any help would be greatly appreciated! 回答1: Devise offers this functionality through its Rememberable module. OmniAuth integrates easily with it through