Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sharing HTTPSession  RSS feed

 
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 ?
 
Ranch Hand
Posts: 8933
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.
 
author & internet detective
Sheriff
Posts: 37821
582
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.
 
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.
 
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
Sheriff
Posts: 37821
582
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...
 
There are 10 kinds of people in this world. Those that understand binary get this tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!