Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2008

Tip: Looking for answers? Try searching our database.

Session migration

Thread view: 
dudee - 09 Jan 2008 15:43 GMT
I want to switch from one server to another when user clicks on url
but i want that session should continue.suppose if he is logged in
earlier then after migation he must remain loged in.
derek - 09 Jan 2008 16:07 GMT
> I want to switch from one server to another when user clicks on url
> but i want that session should continue.suppose if he is logged in
> earlier then after migation he must remain loged in.

Are you asking if you can share data from a HttpSession between two different servers?
You could do this two ways that i can think of.
1) Use some clustering software that comes with your server. apache tomcat supports it.
 This would only work for one domain though. You would not be able to share session data between different domains i beleive.
2) Store your session data in a database and pass the key to the data to the other server.
You would need to pass it to the other server as a querystring or form parameter though.
The other server would then need access to the database and look up the session data.

=====================================================
THIS IS MY SIGNATURE. There are many like it, but this one is mine.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.