This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Sharing HTTPSession Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Sharing HTTPSession" Watch "Sharing HTTPSession" New topic
Author

Sharing HTTPSession

Siripa Siangklom
Ranch Hand

Joined: Jan 26, 2004
Posts: 79
I need to share session information between some Web Applications.
How can I do it ?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8903

A session of one web application is not accessible to another web application. You should store data to be shared in database.


Groovy
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

Siripa,
If it is a small amount of non-confidential information, you can pass it as a parameter.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
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)...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Siripa Siangklom
Ranch Hand

Joined: Jan 26, 2004
Posts: 79
Ok. Thank you.
I get three choices of my design.
Bis Bang
Greenhorn

Joined: Jan 28, 2004
Posts: 15
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.....


The glory lies not in not falling, but it lies in rising everytime you fall
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

Ko Ko,
You are assuming the two web apps are on the same physical box?
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
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...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Sharing HTTPSession
 
Similar Threads
Posting to bump up my count...
Text box value is not being completely filled with request attribute
WA #1.....word association
Cant use object from another class
The x900 effect ?