Img source: interexchange.org

Devise is one of the most famous Ruby gems, which is a flexible authentication solution for Rails based on Warden. It comes with a lot of useful features, but it also has its limitations. One of them is that it does not invalidate a session even though you log out. One of the core developers behind Devise accepts it, and gives the advice of replacing cookie-based storage to address this issue. Fortunately, there is a quicker solution as well. Continue reading