Re: JSessionid Cookie Domain with multiple domains?
Scott Ferguson <[email protected]> Thu, 29 Jun 2006 14:55:35 -0700
| Newsgroups | gmane.text.xml.resin.user |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail-25--635240210 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed On Jun 29, 2006, at 11:19 AM, Choate, Bryan (IHG) wrote: > All- > > > > Basically, I=92ve got a webapp that will serve sites across multiple =20= > domains and I want the jsessionid cookie to be set at the domain =20 > level- currently it=92s being set at the host level, so apparently I =20= > need to specify something in the cookie-domain tag in the =20 > resin.conf, but I can=92t just specify a static domain, obviously. =20= > If I set that to a jndi lookup, I can pull the domain dynamically, =20 > but it looks like the session-config is loaded only once, on =20 > startup. Is that the case? If so, is there another, more logical =20 > way to go about this? I'm not entirely certain I understand the issue. The "domain" for =20 the cookie is just something like: "caucho.com", which would mean the =20= same cookie would be valid for "www.caucho.com", "wiki.caucho.com" =20 and "bugs.caucho.com". Most commonly, the web-app would know which hosts its serving. Is =20 the situation that you have the same web-app serving wiki.foo.com and =20= wiki.caucho.com and wanted to send the "foo.com" domain for =20 wiki.foo.com and "caucho.com" for wiki.caucho.com. That's not =20 currently possible and I'm not sure how an extension would work to =20 make that possible. -- Scott > > > Thanks, > > > > Bryan Choate > > InterContinental Hotels Group > > http://www.ichotelsgroup.com > > office: 770-604-8179 > > mobile: 678-612-3140 > > > > --Apple-Mail-25--635240210 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=WINDOWS-1252 <HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; = -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Jun 29, 2006, = at 11:19 AM, Choate, Bryan (IHG) wrote:</DIV><BR = class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"><SPAN = class=3D"Apple-style-span" style=3D"border-collapse: separate; = border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; = font-size: 12px; font-style: normal; font-variant: normal; font-weight: = normal; letter-spacing: normal; line-height: normal; text-align: auto; = -khtml-text-decorations-in-effect: none; text-indent: 0px; = -apple-text-size-adjust: auto; text-transform: none; orphans: 2; = white-space: normal; widows: 2; word-spacing: 0px; "><DIV = class=3D"Section1"><P class=3D"MsoNormal"><FONT size=3D"2" = face=3D"Arial"><SPAN style=3D"font-size:10.0pt; font-family:Arial; = font-size: 13.3333px; "><SPAN class=3D"Apple-style-span" = style=3D"font-family: Arial; font-size: 13.3333px; ">All-</SPAN><O:P = style=3D"font-family: Arial; font-size: 13.3333px; = "></O:P></SPAN></FONT></P><P class=3D"MsoNormal"><FONT size=3D"2" = face=3D"Arial"><SPAN style=3D"font-size:10.0pt; font-family:Arial; = font-size: 13.3333px; "><O:P style=3D"font-family: Arial; font-size: = 13.3333px; "><SPAN class=3D"Apple-style-span" style=3D"font-family: = Arial; font-size: 13.3333px; ">=A0</SPAN></O:P></SPAN></FONT></P><P = class=3D"MsoNormal"><FONT size=3D"2" face=3D"Arial"><SPAN = style=3D"font-size:10.0pt; font-family:Arial; font-size: 13.3333px; = "><SPAN class=3D"Apple-style-span" style=3D"font-family: Arial; = font-size: 13.3333px; ">Basically, I=92ve got a webapp that will serve = sites across multiple domains and I want the jsessionid cookie to be set = at the domain level- currently it=92s being set at the host level, so = apparently I need to specify something in the cookie-domain tag in the = resin.conf, but I can=92t just specify a static domain, obviously.=A0 If = I set that to a jndi lookup, I can pull the domain dynamically, but it = looks like the session-config is loaded only once, on startup.=A0 Is = that the case?=A0 If so, is there another, more logical way to go about = this?</SPAN></SPAN></FONT></P></DIV></SPAN></BLOCKQUOTE><DIV><BR = class=3D"khtml-block-placeholder"></DIV>I'm not entirely certain I = understand the issue.=A0 The "domain" for the cookie is just something = like: "caucho.com", which would mean the same cookie would be valid for = "<A href=3D"http://www.caucho.com">www.caucho.com</A>", = "wiki.caucho.com" and "bugs.caucho.com".</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>Most commonly, the web-app = would know which hosts its serving.=A0 Is the situation that you have = the same web-app serving wiki.foo.com and wiki.caucho.com and wanted to = send the "foo.com" domain for wiki.foo.com and "caucho.com" for = wiki.caucho.com.=A0 That's not currently possible and I'm not sure how = an extension would work to make that possible.</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>-- Scott<BR><BLOCKQUOTE = type=3D"cite"><SPAN class=3D"Apple-style-span" style=3D"border-collapse: = separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: = 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; = white-space: normal; widows: 2; word-spacing: 0px; "><DIV = class=3D"Section1"><P class=3D"MsoNormal"><FONT size=3D"2" = face=3D"Arial"><SPAN style=3D"font-size:10.0pt; font-family:Arial; = font-size: 13.3333px; "><O:P style=3D"font-family: Arial; font-size: = 13.3333px; "></O:P></SPAN></FONT></P><P class=3D"MsoNormal"><FONT = size=3D"2" face=3D"Arial"><SPAN style=3D"font-size:10.0pt; = font-family:Arial; font-size: 13.3333px; "><O:P style=3D"font-family: = Arial; font-size: 13.3333px; "><SPAN class=3D"Apple-style-span" = style=3D"font-family: Arial; font-size: 13.3333px; = ">=A0</SPAN></O:P></SPAN></FONT></P><P class=3D"MsoNormal"><FONT = size=3D"2" face=3D"Arial"><SPAN style=3D"font-size:10.0pt; = font-family:Arial; font-size: 13.3333px; "><SPAN = class=3D"Apple-style-span" style=3D"font-family: Arial; font-size: = 13.3333px; ">Thanks,</SPAN><O:P style=3D"font-family: Arial; font-size: = 13.3333px; "></O:P></SPAN></FONT></P><P class=3D"MsoNormal"><FONT = size=3D"2" face=3D"Arial"><SPAN style=3D"font-size:10.0pt; = font-family:Arial; font-size: 13.3333px; "><O:P style=3D"font-family: = Arial; font-size: 13.3333px; "><SPAN class=3D"Apple-style-span" = style=3D"font-family: Arial; font-size: 13.3333px; = ">=A0</SPAN></O:P></SPAN></FONT></P><P class=3D"MsoNormal"><STRONG = style=3D"font-family: Times New Roman; font-size: 16px; font-weight: = bold; "><B style=3D"font-family: Times New Roman; font-size: 16px; = font-weight: bold; "><FONT size=3D"2" face=3D"Arial"><SPAN = style=3D"font-size: 10.0pt;font-family:Arial; font-size: 13.3333px; = font-weight: bold; "><SPAN class=3D"Apple-style-span" = style=3D"font-family: Arial; font-size: 13.3333px; font-weight: bold; = ">Bryan Choate</SPAN></SPAN></FONT></B></STRONG><O:P style=3D"font-family:= Times New Roman; font-size: 16px; "></O:P></P><P = class=3D"MsoNormal"><FONT size=3D"1" face=3D"Arial"><SPAN = style=3D"font-size:7.5pt; font-family:Arial; font-size: 10px; "><SPAN = class=3D"Apple-style-span" style=3D"font-family: Arial; font-size: 10px; = ">InterContinental Hotels Group</SPAN></SPAN></FONT><O:P = style=3D"font-family: Times New Roman; font-size: 16px; "></O:P></P><P = class=3D"MsoNormal"><FONT size=3D"1" face=3D"Arial"><SPAN = style=3D"font-size:7.5pt; font-family:Arial; font-size: 10px; "><A = href=3D"blocked::http://www.ichotelsgroup.com/" = title=3D"http://www.ichotelsgroup.com/"><SPAN class=3D"Apple-style-span" = style=3D"color: rgb(0, 0, 255); font-family: Arial; font-size: 10px; = -khtml-text-decorations-in-effect: underline; = ">http://www.ichotelsgroup.com</SPAN></A></SPAN></FONT><O:P = style=3D"font-family: Times New Roman; font-size: 16px; "></O:P></P><P = class=3D"MsoNormal"><FONT size=3D"1" face=3D"Arial"><SPAN = style=3D"font-size:7.5pt; font-family:Arial; font-size: 10px; "><SPAN = class=3D"Apple-style-span" style=3D"font-family: Arial; font-size: 10px; = ">office:=A0770-604-8179</SPAN></SPAN></FONT><O:P style=3D"font-family: = Times New Roman; font-size: 16px; "></O:P></P><P class=3D"MsoNormal"><FONT= size=3D"1" face=3D"Arial"><SPAN style=3D"font-size:7.5pt; = font-family:Arial; font-size: 10px; "><SPAN class=3D"Apple-style-span" = style=3D"font-family: Arial; font-size: 10px; ">mobile: = 678-612-3140</SPAN></SPAN></FONT><O:P style=3D"font-family: Times New = Roman; font-size: 16px; "></O:P></P><P class=3D"MsoNormal"><FONT = size=3D"3" face=3D"Times New Roman"><SPAN style=3D"font-size: 12.0pt; = font-family: Times New Roman; font-size: 16px; "><O:P = style=3D"font-family: Times New Roman; font-size: 16px; "><SPAN = class=3D"Apple-style-span" style=3D"font-family: Times New Roman; = font-size: 16px; ">=A0</SPAN></O:P></SPAN></FONT></P></DIV><BR = class=3D"Apple-interchange-newline"></SPAN></BLOCKQUOTE></DIV><BR></BODY><= /HTML>= --Apple-Mail-25--635240210--