It's not a secret anymore!*
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
Author

session migration

hasan khan
Ranch Hand

Joined: Aug 04, 2003
Posts: 222

i have two different site on two different server

http://www.a.com and http://www.b.com

all my site users first comes on a.com.
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 a.com there is a link to b.com
i dont want user to be authenticated again on b.com by entering his user name and password again.

i just want to migrate session object from a.com to b.com
how do i achive it.
Lucian Vulpe
Greenhorn

Joined: Aug 05, 2005
Posts: 1
Hi,

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,

Lucian,
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.

http://www-128.ibm.com/developerworks/java/library/j-gss-sso/

Thanks,
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
Greenhorn

Joined: Aug 26, 2005
Posts: 1
FYI, Sun recently open sourced their SSO libraries:
https://opensso.dev.java.net/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session migration