<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>naichilab</author_name>
  <author_url>https://blog.hatena.ne.jp/naichilab/</author_url>
  <blog_title>naichi's lab</blog_title>
  <blog_url>https://blog.naichilab.com/</blog_url>
  <categories>
  </categories>
  <description>バージョン &gt; ruby -v ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux] &gt; rails -v Rails 7.0.4.3 先にまとめ 結論 signedかつpermanentなcookieを使う場合は、cookie書き込み箇所だけでなく読取箇所にもpermanentを書いておいた方が安心。 # 書き込み箇所 cookies.permanent.signed[:user_id] = user.id # 読み取り箇所 user_id = cookies.permanent.signed[:user_id] 理由 c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.naichilab.com%2Fentry%2F2023%2F05%2F30%2F030234&quot; title=&quot;【Rails】ローテータを使用した場合にpermanent cookieの有効期限がSessionに変わってしまう - naichi&amp;#39;s lab&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/n/naichilab/20230530/20230530021425.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-05-30 03:02:34</published>
  <title>【Rails】ローテータを使用した場合にpermanent cookieの有効期限がSessionに変わってしまう</title>
  <type>rich</type>
  <url>https://blog.naichilab.com/entry/2023/05/30/030234</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
