Comment 31 for bug 44062

Revision history for this message
In , Bugzilla2008-mailscape (bugzilla2008-mailscape) wrote :

(In reply to comment #30)
> I'm not sure what to do with .jp. Specify that any .jp domain can't set a cookie
> for a parent domain?
.jp domain can set cookies for 2nd level domain.
For example, http://www.ntt.jp/ can set for ".ntt.jp" cookie.
Ofcourse, cannot set for ".jp".

But following domains must not be able to set cookie to 2nd level.

 ad.jp ac.jp co.jp go.jp or.jp ne.jp gr.jp ed.jp lg.jp

And following geographic type domain domains must not be able to
set for 2nd and 3rd level.

 hokkaido.jp aomori.jp iwate.jp miyagi.jp akita.jp yamagata.jp
 fukushima.jp ibaraki.jp tochigi.jp gunma.jp saitama.jp chiba.jp
 tokyo.jp kanagawa.jp niigata.jp toyama.jp ishikawa.jp fukui.jp
 yamanashi.jp nagano.jp gifu.jp shizuoka.jp aichi.jp mie.jp
 shiga.jp kyoto.jp osaka.jp hyogo.jp nara.jp wakayama.jp
 tottori.jp shimane.jp okayama.jp hiroshima.jp yamaguchi.jp
 tokushima.jp kagawa.jp ehime.jp kochi.jp fukuoka.jp saga.jp
 nagasaki.jp kumamoto.jp oita.jp miyazaki.jp kagoshima.jp
 okinawa.jp sapporo.jp sendai.jp yokohama.jp kawasaki.jp
 nagoya.jp kobe.jp kitakyushu.jp

For example, http://www.city.shinagawa.tokyo.jp/ can set a cookie
for ".city.shinagawa.tokyo.jp". But must not be able to set for
".shinagawa.tokyo.jp", ".tokyo.jp" and ".jp".

Exceptionally, only following domains should be able to set cookies
for 3rd level.

 metro.tokyo.jp

 pref.hokkaido.jp pref.aomori.jp pref.iwate.jp pref.miyagi.jp
 pref.akita.jp pref.yamagata.jp pref.fukushima.jp pref.ibaraki.jp
 pref.tochigi.jp pref.gunma.jp pref.saitama.jp pref.chiba.jp
 pref.kanagawa.jp pref.niigata.jp pref.toyama.jp pref.ishikawa.jp
 pref.fukui.jp pref.yamanashi.jp pref.nagano.jp pref.gifu.jp
 pref.shizuoka.jp pref.aichi.jp pref.mie.jp pref.shiga.jp
 pref.kyoto.jp pref.osaka.jp pref.hyogo.jp pref.nara.jp
 pref.wakayama.jp pref.tottori.jp pref.shimane.jp pref.okayama.jp
 pref.hiroshima.jp pref.yamaguchi.jp pref.tokushima.jp pref.kagawa.jp
 pref.ehime.jp pref.kochi.jp pref.fukuoka.jp pref.saga.jp
 pref.nagasaki.jp pref.kumamoto.jp pref.oita.jp pref.miyazaki.jp
 pref.kagoshima.jp pref.okinawa.jp

 city.sapporo.jp city.sendai.jp city.saitama.jp city.chiba.jp
 city.yokohama.jp city.kawasaki.jp city.nagoya.jp city.kyoto.jp
 city.osaka.jp city.kobe.jp city.hiroshima.jp city.kitakyushu.jp
 city.fukuoka.jp
  (Additionally, city.shizuoka.jp will start in Apr 2005.)

For example, the site "http://www.metro.tokyo.jp/" should be allowed to
set a cookie for ".metro.tokyo.jp". Ofcource, It's not allowed to set
for ".tokyo.jp." and ".jp".

If it says simply, "GEOGRAPHIC.jp" cannot set a cookie to the 2nd and the 3rd
level. However, "(metro|pref|city).GEOGRAPHIC.jp" can set a cookie to the 3rd
level. "XX.jp" cannot set a cookie to the 2nd level. The other ".jp" can set a
cookie to the 2nd level.

The above "XX" are "ad, ac, co, go, or, ne, gr, ed, or lg".

The above "GEOGRAPHIC" are "hokkaido, aomori, ... kitakyushu".