You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Joe Reger, Jr." <jo...@joereger.com> on 2004/11/16 23:37:13 UTC

Configure Tomcat's Session Cookie Domain?

Hi.  

Is there any way to specify the domain of the cookie that Tomcat sets to
maintain session across requests?

In java there's javax.servlet.http.Cookie.setDomain(java.lang.String
pattern) that allows me to set it to something like ".joereger.com"... which
allows a cookie to persist across "one.joereger.com", "two.joereger.com",
"three.joereger.com" and so on.

Anything like this in Tomcat's configuration?  I've also looked into the
<jsp:useBean> tags but haven't found anything that does what I'm looking
for.

Thanks,

Joe Reger



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Configure Tomcat's Session Cookie Domain?

Posted by "Joe Reger, Jr." <jo...@joereger.com>.
Thanks.  What I suspected.  Is this to adhere to a spec, or simply
functionality not (yet?) developed for Tomcat?

I've created a workaround session manager that manually sets its own
cookies.  One result being that my scaling strategy can't rely on the
session replication of Tomcat... I'll have to use a firewall with sticky
sessions.  But enough whining from me... like always, there's a workaround.

Best,

Joe 

-----Original Message-----
From: Tim Funk [mailto:funkman@joedog.org] 
Sent: Tuesday, November 16, 2004 7:12 PM
To: Tomcat Users List
Subject: Re: Configure Tomcat's Session Cookie Domain?

Nope. Can't do it.

But if you really need it to be more domain generic - there is nothing
stopping you from expiring the JSESSIONID cookie and setting a newer one at
a more generic level. (But this will probably cause future issues)

-Tim

Joe Reger, Jr. wrote:
> Hi.  
> 
> Is there any way to specify the domain of the cookie that Tomcat sets 
> to maintain session across requests?
> 
> In java there's javax.servlet.http.Cookie.setDomain(java.lang.String
> pattern) that allows me to set it to something like ".joereger.com"... 
> which allows a cookie to persist across "one.joereger.com", 
> "two.joereger.com", "three.joereger.com" and so on.
> 
> Anything like this in Tomcat's configuration?  I've also looked into 
> the <jsp:useBean> tags but haven't found anything that does what I'm 
> looking for.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Configure Tomcat's Session Cookie Domain?

Posted by Tim Funk <fu...@joedog.org>.
Nope. Can't do it.

But if you really need it to be more domain generic - there is nothing 
stopping you from expiring the JSESSIONID cookie and setting a newer one at a 
more generic level. (But this will probably cause future issues)

-Tim

Joe Reger, Jr. wrote:
> Hi.  
> 
> Is there any way to specify the domain of the cookie that Tomcat sets to
> maintain session across requests?
> 
> In java there's javax.servlet.http.Cookie.setDomain(java.lang.String
> pattern) that allows me to set it to something like ".joereger.com"... which
> allows a cookie to persist across "one.joereger.com", "two.joereger.com",
> "three.joereger.com" and so on.
> 
> Anything like this in Tomcat's configuration?  I've also looked into the
> <jsp:useBean> tags but haven't found anything that does what I'm looking
> for.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Tomcat and apache in Oracle9.2.0.1

Posted by Daxin Zuo <dz...@techexcel.com>.
Can anybody forward more specific information?
This Oracle site definitely has the information. But the doc sea is too
wide.
Thanks

-----Original Message-----
From: Tim Funk [mailto:funkman@joedog.org]
Sent: Tuesday, November 16, 2004 4:14 PM
To: Tomcat Users List
Subject: Re: Tomcat and apache in Oracle9.2.0.1


How about  http://www.oracle.com/support/index.html ?

-Tim

Daxin Zuo wrote:

> After install Oracle9.2.0.1, Apache and Tomcat are installed. What are the
> versions of the TOMCAT and the apache in this version of Oracle? Do you
know
> the location of the document where oracle describe its http server?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat and apache in Oracle9.2.0.1

Posted by Tim Funk <fu...@joedog.org>.
How about  http://www.oracle.com/support/index.html ?

-Tim

Daxin Zuo wrote:

> After install Oracle9.2.0.1, Apache and Tomcat are installed. What are the
> versions of the TOMCAT and the apache in this version of Oracle? Do you know
> the location of the document where oracle describe its http server?
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Tomcat and apache in Oracle9.2.0.1

Posted by Daxin Zuo <dz...@techexcel.com>.
After install Oracle9.2.0.1, Apache and Tomcat are installed. What are the
versions of the TOMCAT and the apache in this version of Oracle? Do you know
the location of the document where oracle describe its http server?

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org