<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Logout on Artem Yegorov</title>
    <link>https://yegorov.github.io/tags/logout/</link>
    <description>Recent content in Logout on Artem Yegorov</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 26 May 2026 08:31:18 +0000</lastBuildDate>
    <atom:link href="https://yegorov.github.io/tags/logout/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Fast way logout all users on your site</title>
      <link>https://yegorov.github.io/notes/fast-way-logout-all-users-on-your-site/</link>
      <pubDate>Tue, 26 May 2026 08:31:18 +0000</pubDate>
      <guid>https://yegorov.github.io/notes/fast-way-logout-all-users-on-your-site/</guid>
      <description>&lt;p&gt;If you are using your own authentication implementation, the fastest and easiest way to log out all users of your Rails application is to change the &lt;a href=&#34;https://api.rubyonrails.org/classes/Rails/Application.html#method-i-secret_key_base&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;code&gt;secret&lt;/code&gt;&lt;/a&gt; or change the name of the &lt;a href=&#34;https://api.rubyonrails.org/classes/Rails/Application/Configuration.html#method-i-session_store&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;session cookie&lt;/a&gt;.&#xA;If you&amp;rsquo;re wondering &amp;ldquo;Why?&amp;rdquo;, my answer is this:&#xA;When you purge users from your database, some of these users may be logged in to your site.&#xA;And if you delete them without logging them out, the next time they log in to your site, they&amp;rsquo;ll see a 500 error (since they simply won&amp;rsquo;t be found in your database).&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
