<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unau</author_name>
  <author_url>https://blog.hatena.ne.jp/unau/</author_url>
  <blog_title>昨日知ったこと</blog_title>
  <blog_url>https://unau.hatenadiary.org/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>PHP では、セッションを有効にしている間はセッションファイルを排他的にロックするっぽい。それだと同一セッションに属する複数のリクエストがパラに走らない。 ので、セッション情報にアクセスするときだけセッションを有効にできるか、やってみた。 まずは書込み側。 &lt;?php session_start(); $_SESSION['a'] = 1; session_write_close(); $_SESSION['b'] = 2; session_start(); // again $_SESSION['c'] = 3; session_write_close(); // end of file で…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funau.hatenadiary.org%2Fentry%2F20110819%2F1313735131&quot; title=&quot;セッション情報に触りたいときだけセッションを有効にする修行 - 昨日知ったこと&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-08-19 15:25:31</published>
  <title>セッション情報に触りたいときだけセッションを有効にする修行</title>
  <type>rich</type>
  <url>https://unau.hatenadiary.org/entry/20110819/1313735131</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
