Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic