diff --git a/masquerade.module b/masquerade.module
index aff233d..6ead3c7 100644
--- a/masquerade.module
+++ b/masquerade.module
@@ -67,6 +67,11 @@ function masquerade_toolbar() {
         '#title' => t('Unmasquerade'),
         '#url' => Url::fromRoute('masquerade.unmasquerade'),
       ],
+      '#cache' => [
+         'contexts' => [
+           'session',
+         ],
+       ],
       // Hopefully shows immediately after the username tab.
       '#weight' => 101,
     ];
