You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dave <ja...@yahoo.com> on 2008/07/10 06:11:19 UTC
domain level session tracking (cookie based)
Hi,
We are using JBoss 4.0.5GA. The web server can be accessed using a number of subdomains, such as:
a.mydomain.com
b.mydomain.com
In a same web browser instance, if a user visits a.mydomain.com, then click b.mydomain.com in the page, the new page will be a different session.
For cookie based session tracking, how to configure domain-level ?
that is , a.mydomain.com and b.mydomain.com share the same session id.
Thanks for help.
Dave
Re: domain level session tracking (cookie based)
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dave,
Dave wrote:
| In a same web browser instance, if a user visits a.mydomain.com, then
click b.mydomain.com in the page, the new page will be a different session.
|
| For cookie based session tracking, how to configure domain-level ?
|
| that is , a.mydomain.com and b.mydomain.com share the same session id.
You may have to do some work for yourself, because Tomcat's built-in
session cookies will not do this kind of thing for you. On the other
hand, you might be able to do something with your own cookies.
GIYF:
http://www.google.com/search?hl=en&q=sharing+cookies+between+domains&btnG=Search
The first result (http://www.15seconds.com/issue/971108.htm) is targeted
towards .NET, but the idea is the same: just set the domain for the
cookie appropriately.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkh+l+cACgkQ9CaO5/Lv0PAMSwCgu46+lWDdZJeHG1kIGBAHn/16
w34An2sHiv588j6PnIyVYv4RhGV2TPkm
=4Dwi
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org