Is the SessionID passed in the url? You could make WO use the same session ID (not the same session) by changing the wosid identifier. This is configurable in WO 5.4. That way you have both session sharing the same ID.

Pierre
--
Pierre Frisch
[EMAIL PROTECTED]


On Feb 13, 2008, at 5:31, Mike Schrag wrote:

Can we step back again and have you explain what you're trying to achieve, at a higher level than just this single session value? For instance, when you say "otherj2eeAppSession", do you actually mean session.getId() from the other app? Is your intent that you need the other application's sessionid so that you can redirect users back to that app later and maintain their original session? Is "otherj2eeAppSession" actually the sessionid of some THIRD j2ee app that you have to be able connect to? If you can explain one level up what it is you're attempting to do, we might be able to help more than than digging around in the details which might not be headed in the direction you think it is in the first place.

ms

On Feb 13, 2008, at 12:45 AM, Jeff Schmitz wrote:

What you most likely want to do is call your DA and manually pass the session ID as a query parameter, for instance:

The trouble is, I have no control over this. The session ID gets passed as it gets passed, nothing I can do about it I don't think because it's not my app. I just give it the link, and it decides how the session ID is passed. That being the case, looks like the answer is I'm out of luck, right?

Thanks,
Jeff

On Feb 12, 2008, at 11:26 PM, Mike Schrag wrote:

It is going to be sending a session identifier. This is going to be either in the form values or in the HTTP headers.
I don't see it in the URL, so I'm guessing it must come over as a form variable. If so, using my last e-mail as an example j2ee equivalent of what I want to do, i.e.:

String sessionKey = (String) session.getAttribute("otherj2eeAppSession");

should I be able to get it simply by doing:

String sessionKey = (String) this.request().formValueForKey("otherj2eeAppSession");
1) If you're calling session.getAttribute("otherj2eeAppSession") in your j2ee app to get this value, there's no way to get this value from your WO app. A session attribute is a key-value pair _inside_ of an HttpSession, which you don't have (and cannot get without literally serializing the session and sending it over in some custom way).

2) The only thing you can possibly get is one of:
2a) a form parameter that you manually pass to your DA as a query string parameter 2b) a form parameter that you manually pass to your DA via a post parameter 2c) a cookie value provided both of your apps are on the same host and the cookie is configured at the root

What you most likely want to do is call your DA and manually pass the session ID as a query parameter, for instance:

http://yourhost.com/cgi-bin/WebObjects/YourApp.woa/wa/yourDirectAction?otherj2eeAppSession=xyz

at which point, yes you could call request().stringFormValueForKey("otherj2eeAppSession") and get the value.

ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jeffandmonica%40mac.com

This email sent to [EMAIL PROTECTED]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/pierre%40apple.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to