This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sharing HTTPSession

 
Siripa Siangklom
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to share session information between some Web Applications.
How can I do it ?
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A session of one web application is not accessible to another web application. You should store data to be shared in database.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Siripa,
If it is a small amount of non-confidential information, you can pass it as a parameter.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeanne Boyarsky:
Siripa,
If it is a small amount of non-confidential information, you can pass it as a parameter.

What about writing into a text files? It's an alternative implementation between using database(suggested by Pradeep Bhat) and using parameter(suggested by Jeanne Boyarsky)...
 
Siripa Siangklom
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. Thank you.
I get three choices of my design.
 
Bis Bang
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make use of LDAP and store session over there....Use Session manager for the different web application which interect with the LDAP server to get the session.....
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ko Ko,
You are assuming the two web apps are on the same physical box?
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeanne Boyarsky:
Ko Ko,
You are assuming the two web apps are on the same physical box?

R u talking about distributable web apps? Then use Pradeep's suggested method or ur method to achieve that... :roll: One thing my method can be applied, if there is one dedicated server to save the ASCII text files like using in old times...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic