Re: Share session cookie across subdomains

2008-04-25 Thread Zach Cox
opher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Zach, > > Zach Cox wrote: > | Hi Matthias - Unfortunately I think the Response class is just as > ill-suited > | for wrapping/extending as the Request class is. Which boggles my mind - >

RE: Share session cookie across subdomains

2008-04-25 Thread Zach Cox
. > > -- Matthias > > -Original Message- > From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 23, 2008 9:51 PM > To: Tomcat Users List > Subject: Re: Share session cookie across subdomains > > -BEGIN PGP SIGNED MESSAGE- > Ha

Re: Share session cookie across subdomains

2008-04-23 Thread Zach Cox
Hi Chris - I'm not sure what this will accomplish: public Request(Request wrapped) { ~this.wrapped = wrapped; } public whatever doWhatever(args) { ~super.doWhatever(args); } 1) this.wrapped is never used so what's the point of saving it? 2) why override all of the methods just to call t

Re: Share session cookie across subdomains

2008-04-22 Thread Zach Cox
Thanks, Zach Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Zach, > > Zach Cox wrote: > | Hi Chris - I thought about doing that, but that existing Request > | object could have state that my newly created Request will not hav

Re: Share session cookie across subdomains

2008-04-21 Thread Zach Cox
s it to the next valve in the chain? Thanks, Zach Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Zach, > > Zach Cox wrote: > | Note that this entire issue would be made much more simple if there was >

RE: Share session cookie across subdomains

2008-04-21 Thread Zach Cox
is behavior is acceptable. > (e.g. if you can be sure that your site is not accessed by search engine > robots, if you have a rather short session timeout and can live with the > overhead of creating many unnecessary session objects, ...) > > -- Matthias > > -Original Messa

Re: Share session cookie across subdomains

2008-04-20 Thread Zach Cox
That's a really good idea and could definitely be done by modifying the getCookieDomain method. I whipped that method up pretty quickly for my own purposes - and you're correct, this currently won't work with two-part TLDs like .co.uk. If I get some spare time (already used 2 days of this projec

Share session cookie across subdomains

2008-04-19 Thread Zach Cox
I'm working on a site that has a single web app in Tomcat that handles lots of subdomains via wildcard DNS: - site.com - www.site.com - sub1.site.com - sub2.site.com - etc. Basically, the site content gets customized based on the subdomain in the request, if any. However I ran into a problem

Custom Request Subclass

2008-04-18 Thread Zach Cox
I'm using Tomcat 6.0.14 and I need to override the Request.configureSessionCookie method to call setDomain on the Cookie (so the session cookie can be shared across subdomains). Is there any way to tell Tomcat to instantiate & use my Request subclass instead of Request itself? Thanks, Zach -

Custom Valve

2008-04-18 Thread Zach Cox
I'm using Tomcat 6.0.14 and need to write a custom Valve to control the Domain property of the JSESSIONID cookie (so it will be reused on any subdomain) but I can't find any documentation on how to go about creating a custom Valve. Could someone please let me know if this is accurate? - extend t