URL-Rewritingåé¡
ååã¢ã¯ã»ã¹æã«
è²ã 調ã¹ãçµæãjavax.servlet.HttpServletResponse#encodeURL()ã諸æªã®æ ¹å ã®ããã§ãããã®ã¡ã½ããã®ä¸ã§Cookieã®æç¡ã調ã¹ãåå¨ããªãå ´åã¯URLã«ã»ãã·ã§ã³IDãä»å ããã¨ããå¦çãè¡ããã¦ãã¾ãã
çµå±ããCookieãéããã¦ããªãã£ããããã®ãªã¯ã¨ã¹ãã«å¯¾ããã¬ã¹ãã³ã¹ã³ã³ãã³ãã«å«ã¾ãããªã³ã¯ã«ã¯ã»ãã·ã§ã³IDãä»å ãããã¨ã§ã»ãã·ã§ã³ãç¶æããããã¨ããJava Servletã®è¨è¨ææ³ã®ããã§ãããããã«Cookieããµãã¼ãããªãã¯ã©ã¤ã¢ã³ãï¼æºå¸¯é»è©±ã¨ãï¼ã«å¯¾ãã¦ã¯æå¹ãªæ¹æ³ã ã¨ã¯æãã¾ããããã®ããã«ã»ãã·ã§ã³IDãæ¼æ´©ãããªã¹ã¯ãæ±ãã¦ãã¾ã£ã¦ããããã§ãã©ããç´å¾ãããã¾ããããå°ãªãã¨ããURL-Rewritingããªãã«ããæ段ã¯æä¾ãã¦ã»ãããã®ã§ãã
ã¨ããã§ã";jsessionid=xxx"ã®å é ã®ã»ãã³ãã³ããã£ã¨æ°ã«ãªã£ã¦ããã®ã§ãããHTTPã®ãªã¯ã¨ã¹ãURL表è¨ã«ããã¦ã";"ï¼ã»ãã³ãã³ï¼ã§é£çµããã®ã¯"parameter"ã"?"ï¼ã¯ã¨ã¹ãã§ã³ãã¼ã¯ï¼ã§é£çµãããã®ã¯"query"ã¨å¼ã¶ã®ã ããã§ãããæ¥ããããªããåãã¦ç¥ãã¾ããã
http_URL = "http:" "//" host [ ":" port ] [ abs_path [ ";" parameter ] [ "?" query ]]
ãããªæãã§ããã