• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Clustered servers killing my session object

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am a developer on a project that is being forced to use a load balancing server envirnment. The problem is that I am using a session attribute, UserObject, to keep track of user info. When the user logs in, a UserObject is created and before any action is executed the UserObject is check to be valid or not. If it is then it executes normal, if the object is invalid then the user is forwarded to the login page. The problem arrises when the controller switched the user from one server to the other, the session object is lost and thus the user is kicked out to the login page only for the same thing to happen again. What needs to be changed in the Sun One Configuration?

Thanks,
Matt
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Somehow you need to make in-memory session replication work. In tomcat this is very easy. You'll have to check out sun's website to see how iplanet 6 does that. Or you could have a specific directory that you save your session info and then have all the servers access the session data from that one place. But the best bet is the in-memory session replication.
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic