File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes session migration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "session migration" Watch "session migration" New topic

session migration

hasan khan
Ranch Hand

Joined: Aug 04, 2003
Posts: 222

i have two different site on two different server and

all my site users first comes on
the user login by entering user name and password.
on successful login i am storing an LoginBean object in to the session as attribute.

on there is a link to
i dont want user to be authenticated again on by entering his user name and password again.

i just want to migrate session object from to
how do i achive it.
Lucian Vulpe

Joined: Aug 05, 2005
Posts: 1

I think want you want is Single Sign On. I don't think is possible and good practice to migrate the session from one server to another.

Best Regards,

Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
Though technically in terms of web containers, this is not possible.
You could do stuff like persist the session in database, possibly on the other side, do read from the DB, and do your stuff. Just a cheat solution.
Sehrish Hasan
Ranch Hand

Joined: Aug 15, 2005
Posts: 43
Hi Hasan,

Click on the link below and read this article. It might help you.

M Abidi.
Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
Interesting article. I was speaking more from tomcat's perspective, and I had limited knowledge about SSO and Kerberos.
So I should hold back my view.

I will sure read about this, and have it working for two tomcats, and see how it works really.
Generic Nick

Joined: Aug 26, 2005
Posts: 1
FYI, Sun recently open sourced their SSO libraries:
I agree. Here's the link:
subject: session migration
jQuery in Action, 3rd edition