<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Cookie on php-tips.com</title>
    <link>https://php-tips.com/tags/cookie/</link>
    <description>Recent content in Cookie on php-tips.com</description>
    <generator>Hugo</generator>
    <language>ja</language>
    <lastBuildDate>Sun, 17 Dec 2017 00:00:13 +0900</lastBuildDate>
    <atom:link href="https://php-tips.com/tags/cookie/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>2017年に公開した自作CakePHPプラグインの紹介</title>
      <link>https://php-tips.com/2017/12/17/my-cakephp-plugins-2017/</link>
      <pubDate>Sun, 17 Dec 2017 00:00:13 +0900</pubDate>
      <guid>https://php-tips.com/2017/12/17/my-cakephp-plugins-2017/</guid>
      <description>&lt;p&gt;この記事は、 &lt;a href=&#34;https://qiita.com/advent-calendar/2017/cakephp&#34;&gt;CakePHP Advent Calendar 2017&lt;/a&gt; 17日目の記事です。&lt;/p&gt;
&lt;p&gt;前日の記事は sizuhiko さんの &lt;a href=&#34;https://qiita.com/sizuhiko/items/0e9e11f55d8b9f220af0&#34;&gt;テストデータを簡単に作る方法&lt;/a&gt; でした。&lt;/p&gt;
&lt;p&gt;今日は、私 nojimage が2017年に公開したCakePHP 3向けのプラグインをだだだっと紹介したいと思います。&lt;/p&gt;</description>
    </item>
    <item>
      <title>CakePHPのCookieComponent::writeのencryptがデフォルトでは暗号になってない件</title>
      <link>https://php-tips.com/2013/12/12/cakephp-cookiecomponent/</link>
      <pubDate>Thu, 12 Dec 2013 22:48:03 +0900</pubDate>
      <guid>https://php-tips.com/2013/12/12/cakephp-cookiecomponent/</guid>
      <description>&lt;blockquote class=&#34;twitter-tweet&#34; lang=&#34;ja&#34;&gt;正しいタイトル→ CakePHPのCookieComponent::writeのencryptがデフォルトでは暗号になってない件 ですね / “PHP はいつもわたしに新鮮な驚きを与えてくれる - 猫型の蓄音機は 1 分間に 45…” &lt;a href=&#34;http://t.co/UkWZCHbtGN&#34;&gt;http://t.co/UkWZCHbtGN&lt;/a&gt;
&lt;p&gt;— Hisateru Tanaka (@tanakahisateru) &lt;a href=&#34;https://twitter.com/tanakahisateru/statuses/410794216277561344&#34;&gt;2013, 12月 11&lt;/a&gt;&lt;/blockquote&gt;
 &lt;/p&gt;</description>
    </item>
    <item>
      <title>CakePHP Cookieコンポーネントの改良（ちょっとだけ）</title>
      <link>https://php-tips.com/2009/09/15/cakephp%E3%82%B3%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%8D%E3%83%B3%E3%83%88%E3%81%AE%E6%94%B9%E8%89%AF%E3%81%A1%E3%82%87%E3%81%A3%E3%81%A8%E3%81%A0%E3%81%91/</link>
      <pubDate>Tue, 15 Sep 2009 22:50:00 +0900</pubDate>
      <guid>https://php-tips.com/2009/09/15/cakephp%E3%82%B3%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%8D%E3%83%B3%E3%83%88%E3%81%AE%E6%94%B9%E8%89%AF%E3%81%A1%E3%82%87%E3%81%A3%E3%81%A8%E3%81%A0%E3%81%91/</guid>
      <description>&lt;p&gt;cakephpにはCookieコンポーネントがあります。
&lt;a href=&#34;http://book.cakephp.org/ja/view/177/Cookies&#34;&gt;&lt;a href=&#34;http://book.cakephp.org/ja/view/177/Cookies&#34;&gt;http://book.cakephp.org/ja/view/177/Cookies&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;これを利用すると、cookieの管理が楽にできたり格納値の暗号化ぽいことができるのですが、設定方法が&lt;a href=&#34;http://book.cakephp.org/ja/view/179/Controller-Setup&#34;&gt;Controller::beforeFilter()での設定&lt;/a&gt;となり、ちょっとスマートじゃないなと思ったのでひと工夫。&lt;/p&gt;</description>
    </item>
    <item>
      <title>redirectとsession(というかset-cookie)</title>
      <link>https://php-tips.com/2009/06/13/redirect%E3%81%A8session%E3%81%A8%E3%81%84%E3%81%86%E3%81%8Bset-cookie/</link>
      <pubDate>Sat, 13 Jun 2009 14:14:28 +0900</pubDate>
      <guid>https://php-tips.com/2009/06/13/redirect%E3%81%A8session%E3%81%A8%E3%81%84%E3%81%86%E3%81%8Bset-cookie/</guid>
      <description>&lt;p&gt;私的メモ。&lt;/p&gt;
&lt;p&gt;外部からパラメータ -&amp;gt; login.php -&amp;gt;[redirect]-&amp;gt; top.php&lt;/p&gt;
&lt;p&gt;redirectの前にset-cookieを送ってもieだと認識してくれないみたい。&lt;/p&gt;
&lt;p&gt;なので、login.phpから直にHTTP Redirectを吐かず、ページを表示させてそこで、reflashや、javascriptで飛ばしてやる必要がある。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
