Cookie ããããã orz
æºå¸¯ã®Cookieå¨ããã¡ããã¨èª¿ã¹ã¦ã¿ãã§ãã
â¦ãªãã¦ããããã¿ããçãã§ã orz
以ä¸ãæ°åããªãåæã
ã»Secure Cookieé対å¿ãããããã
ã»ä¸æCookie(ããã©ã¦ã¶ãéããããã¾ã§æå¹ãã£ã¦ãã¤)é対å¿ãããããã(ã¾ãåºæ¬ããã¾ã好ã¾ããã¨æã£ã¡ãããªãã
ã»auã§ãããç¨åº¦ã®å
±æã¯å¯è½ããã ãâ¦ãåç
§ã§ããªãããå¤æ´ã¨ç ´æ£ãã§ããªãããªã©ãè²ã
ãããäºå®ä¸ãã£ã¤ãã£ã½ orz
http://kokogiko.net/m/archives/002179.html
- httpé åã§ä½ãããsecureå±æ§ã®ãªãCookieã¯ãhttpsã«ç§»ãã¨åç §ã§ããªãã
- httpsé åã§ä½ãããsecureå±æ§ã®ãªãCookieã¯ãhttpã«ç§»ãã¨åç §ã¯ã§ããããå¤æ´ã»ç ´æ£ãã§ããªãã
- ããã«ãhttpsé åã§ä½ãããCookieãhttpæ¥ç¶ä¸ã«æå¹æéãåããã¨ãhttpå´ã§åçºè¡ããããããhttpsã§åç §ã§ããªããªã
- ãªã®ã§äºå®ä¸auã§ãhttpã¨httpséã§ã¾ã¨ãã«ã¯Cookieå ±æã§ããªãã«çãã
ã»AUã§ã¯ãSet-Cookieãã£ã¼ã«ãã®max age(æå¹æ®åç§æ°)ã§æå®ãã®ã¿ãExpireããããéç¨ããªã(ã®ã§ãPHPã§ã®è¨å®ãã§ããªããã¾ãç´ æµãheaderé¢æ°ä½¿ã£ã¦èªåã§cookieãã»ãããã¾ãã)
ã»SoftBankã¯httpã¨httpséã§ä¸åã®Cookieãå
±æã§ããªãããã orz
ãããªè©±ãã
http://d.hatena.ne.jp/m_norii/20080806/1218032059
ãã ããå¥ã®çç±ã§ãSSLã»éSSLã¯ã¾ããã¾ããããã
ããã¯SoftBankã®SSLä»æ§ã«èµ·å ãããã§ããã
SoftBank端æ«ã§SSLã®ãã¡ã¤ã³ã«ã¢ã¯ã»ã¹ããã¨ãåã«httpsã«ãªãã®ã§ã¯ãªãã
SoftBankã®ä¸éã²ã¼ãã¦ã§ã¤ãä»ãã¦SSLæ¥ç¶ãããã¨ã«ãªãã¾ãã
ä¾ãã°ãhttps://example.com/index.html ã¸ã®ãªã³ã¯ã¯
https://secure.softbank.ne.jp/example.com/index.html
ã¨ãªãã¾ã*4ã
å¾ã£ã¦ããã¡ã¤ã³ãå¤ãã£ã¦ãã¾ãã®ã§ãCookieå¼ãç¶ããªããã§ãããã
ã»ãSoftBankã®æºå¸¯ãã©ã¦ã¶ã¯ãèªçºçã«Cookieã¯éåºãã¾ããããµã¼ãããã®ã¬ã¹ãã³ã¹ããã Set-Cookie ãåãåãã¨ã次ã®ãªã¯ã¨ã¹ãããCookieãéåºãã¾ãã
ãµãã
ãâ¦æã£ã以ä¸ã«ãã¤ããããã¬ã©ãã´ã¹ãorz
ãæºå¸¯ã®ã»ãã¥ãªãã£é¢é£ãåèå¯ãã¨ãã£ã¦ãã¿ã§æ¸ãããã¨æã£ãã§ããâ¦â¦â¦æ«æ orz