<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tokizuoh</author_name>
  <author_url>https://blog.hatena.ne.jp/tokizuoh/</author_url>
  <blog_title>カルボナーラ街道</blog_title>
  <blog_url>https://tokizuoh.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
    <anon>Web</anon>
  </categories>
  <description>シリーズ GoでCookieを利用したセッション管理を実装した 本記事 モチベーション 現在の実装*1 ではアプリケーションサーバー側のセッションIDがプログラム終了後に揮発してしまう。 // https://github.com/tokizuoh/statice/blob/v0.1/front/main.go#L12 var mapSessionID = map[string]string{} プログラムが終了した後でもセッションIDを揮発させないために永続化する。 セッション管理のDBについては初学者のため良し悪しが分からないのでスタンダードっぽいRedisを使ってみる。 リポジトリ gi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftokizuoh.hatenablog.com%2Fentry%2F2022%2F04%2F22%2F133113&quot; title=&quot;GoでCookieを利用したセッション管理を実装した | 2: セッションIDをサーバー側で永続化 - カルボナーラ街道&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>2022-04-22 13:31:13</published>
  <title>GoでCookieを利用したセッション管理を実装した | 2: セッションIDをサーバー側で永続化</title>
  <type>rich</type>
  <url>https://tokizuoh.hatenablog.com/entry/2022/04/22/133113</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
