On Mon, 14 May 2001 [EMAIL PROTECTED] wrote:
> Salut Mihai,
Salut.
>
> > How can I have the same session for many web sites?
> >
> > By default, for the first request tomcat creates a implicit session and
> > sends a cookie with domain=servername. What I wanna do is setting this
> > cookie for domain=partian domain name (like .kiki.ro) (that means this
> > cookie will come back for all the hosts ending with .kiki.ro and I'll have
> > the same session for all the sites :)). I think I have to say that I use
> > the same application context for all this sites...
> >
> > Another problem is using the same session between applications... I know
> > it is not conform the sun specifications (... HttpSession objects must be
> > scoped at the application / servlet context level. The underlying
> > mechanism, such as the cookie used to establish the session, can be shared
> > between contexts, but the object exposed, and more importantly the
> > attributes in that object, must not be shared between contexts. ...),
> > but there must be a way to do that...
>
>
> As long as you know this is not standard :-), you will have to make some
> changes to the session interceptor or create a new one.
"Cross-webapps" sessions are not standard, but for "cross-host" sessions I
didn't find any specifications...
> In 3.3, the code is in modules.session.SessionId, you should probably
> create a new module, add an option and code that supports what you
> need, and maybe publish the changes for others :-)
I taked a look into the sources and I didn't find any code that sets the
domain for JSESSIONID cookie... I don't know exactly what's going on, but
I imagine that mod_jk or apache sets this (the domain) if it is not
specified... Am I right?
Thx again...
> I don't think this can be commited in jakarta-tomcat, as it is not
> standard and it's not a required feature, but it would be nice to have it
> somewhere.
>
>
> Costin
>
> >
> >
> > thx,
> > --
> > :], Mihai P.
> >
> > xblue@
> > necomm.ro
> > fenrir.infoiasi.ro
> >
> > icq:77484853
> >
> > =====-----=====
> >
>
--
:], Mihai P.
xblue@
necomm.ro
fenrir.infoiasi.ro
icq:77484853
=====-----=====