• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to keep a session on several servers

 
Miguel Onofre
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody
Could anyboy tell me how to keep
a session created on a previous server and
maintained on any other server?
I heard something about cascading sessions
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds application server specific, which server are you using?
 
Aruna Gopalakrishnan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have also posted a query something similar to this. So please let me know in case if you find answer for your question. We are using Websphere application server and Jserv as webserver.
I will also let you know in case if i come to know any answer.
Thanks
Best Regards
Aruna G
 
DC Dalton
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im pretty sure sessions, like cookies are server specific. I really dont think its possible to save them across different domains. This drops into the realm of security problems & if Im not mistaken this type of session behaviour isnt allowed due to the fact that if you could do it people would be trying to grab user info from other sites constantly.
 
Al Green
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet2.2/3 spec does not define support for distributed sessions. It is definitely server specific at best. So don't expect your webapp to be portable. There are various articles out there describing tactics to realize this requirement. One on javaworld a while back was entitled "Distributed Sessions" and the method behhind it was using RMI to synch all of the sessions.
In short, there are no nice simple solutions, yet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic