Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session migration

 
hasan khan
Ranch Hand
Posts: 223
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FYI, Sun recently open sourced their SSO libraries:
https://opensso.dev.java.net/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic