You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by SH Solutions <sh...@gmx.net> on 2004/07/04 16:42:41 UTC

Sessions and Domains

Hi

I've got a problem with sessions.
I have sessions for every user. There are a few information in these
session, include their login account.

Under some circumstands I need to redirect these users to other domains
running the same webapp.
Right now, when I detect this, I copy all information into a hashmap,
genereate a unique key, redirect them to a special page on the new domain,
set all session attributes again from the hashmap, which can be found using
the unique key. and redirect them inside the new domain to the page, they
should go to.

This works fine, but creates a second session. If the user already opened a
new browser window before klicking the domain-changing link, these two
sessions are different. This is not, what I want.

Is there a way to link a existing session to a new request, which has no
session that far?
There is NO request.setSession( oldSession )...

It is no problem to get hands on the session, which needs to be linked, but
i cannot link it.

Regards,
  Steffen


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