<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shokai</author_name>
  <author_url>https://blog.hatena.ne.jp/shokai/</author_url>
  <blog_title>橋本詳解</blog_title>
  <blog_url>https://shokai.hatenadiary.org/</blog_url>
  <categories>
    <anon>Sinatra</anon>
  </categories>
  <description>set :session, true の代わりに use Rack::Session::Cookie, :key =&gt; 'rack.session', :domain =&gt; 'shokai.org', :path =&gt; '/', :expire_after =&gt; 60*60*24*14, # 2 weeks :secret =&gt; 'kazusuke_ha_umaiyo' して、いままで通りsessionのhashに出し入れすればいい。っぽい。たぶんちゃんと2週間でcookie破棄される。はず。 get '/' do redirect '/hoge' unless session[:name] …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshokai.hatenadiary.org%2Fentry%2F20110324%2F1300999147&quot; title=&quot;Rack::Session::Cookieを使う - 橋本詳解&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-03-24 05:39:07</published>
  <title>Rack::Session::Cookieを使う</title>
  <type>rich</type>
  <url>https://shokai.hatenadiary.org/entry/20110324/1300999147</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
