Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting struts to use existing session

Status
Not open for further replies.

mglenn

IS-IT--Management
Apr 27, 2005
3
US
Why does struts always create a new session? I have an application (non-struts) that creates a session. The user is then allowed to link to a struts application on another appserver. When the struts app comes up the existing session is blown away by struts. Why?
 
Hi,

you cannot redirect session that is created from one server to another server. It is not a problem with struts.

Cheers
Venu
 
The web server is the same. The domain is the same. The application server is different. We have Websphere which allows sessions to be shared across appservers. It works fine if I link to a servlet instead of struts.
 
Hi,

Can you copy the src code of the Sturts Action class and Action Mapping.

Venu
 
Struts is not the problem. Session replication was not set up correctly in WebSphere. IBM suggested a work around which is a setting in Websphere that changes the cookie name on a paticular appserver. You then end up with two session cookies. Thanks for the help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top