<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Cocoonで使用していたお気に入り機能をアップデート へのコメント	</title>
	<atom:link href="https://hwinotes.com/reader-favorites-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>https://hwinotes.com/reader-favorites-plugin/</link>
	<description>忘れる前に忘備録...。</description>
	<lastBuildDate>Tue, 20 Oct 2026 02:14:21 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/>
<atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/>
<atom:link rel="hub" href="https://websubhub.com/hub"/>
<atom:link rel="self" href="https://hwinotes.com/reader-favorites-plugin/feed/"/>
	<item>
		<title>
		宙也 より		</title>
		<link>https://hwinotes.com/reader-favorites-plugin/#comment-149</link>

		<dc:creator><![CDATA[宙也]]></dc:creator>
		<pubDate>Wed, 24 Jun 2026 13:40:02 +0000</pubDate>
		<guid isPermaLink="false">https://hwinotes.com/?p=2695#comment-149</guid>

					<description><![CDATA[ご指摘の通り、8日以上経過するとクッキーの有効期限が切れ、お気に入りが消えてしまいます。
サーバーサイド（PHP側）の処理ではローカルストレージを直接読み込むことができないため、データ保持にはクッキーを使い続ける工夫が必要です。
面倒だったので、掲載コードはクッキーのみとしています。
ずるい方法でクッキーの保存期間を延ばすと言う方法もありますが（笑）

対策として、マスターデータをローカルストレージに保存し、ページ読み込み時にそれをクッキーへコピー（同期）する仕組みを取るのが望ましいですね。]]></description>
			<content:encoded><![CDATA[<p>ご指摘の通り、8日以上経過するとクッキーの有効期限が切れ、お気に入りが消えてしまいます。<br />
サーバーサイド（PHP側）の処理ではローカルストレージを直接読み込むことができないため、データ保持にはクッキーを使い続ける工夫が必要です。<br />
面倒だったので、掲載コードはクッキーのみとしています。<br />
ずるい方法でクッキーの保存期間を延ばすと言う方法もありますが（笑）</p>
<p>対策として、マスターデータをローカルストレージに保存し、ページ読み込み時にそれをクッキーへコピー（同期）する仕組みを取るのが望ましいですね。</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
