Re: DirectAction with cookies and session
Re: DirectAction with cookies and session
- Subject: Re: DirectAction with cookies and session
- From: Fred Wells <email@hidden>
- Date: Tue, 22 Sep 2009 11:04:16 -0500
Doh! I needed to add the session id
through SWFUpload post params not through directActionURLForActionNamed's
query dictionary. thanks.-fwChuck Hill <email@hidden> 09/21/2009 09:53 PM | To | Fred Wells <email@hidden> | cc | email@hidden | Subject | Re: DirectAction with cookies and session |
|
On Sep 21, 2009, at 1:19 PM, Fred Wells wrote:
>
> Hello,
> If I missed this I apologize but I can't seem to find anything on
> this. I'm trying to test out SWFUpload within one of my WO apps.
> It is currently set up to store sessionID in cookies. SWFUpload
> needs a post-upload URL for processing, I need the session
> information to be
> available to that URL.
How are you making the URL? Cookies should be OK. Or the URL
can
have ?wosid=....
> I can't seem to get DirectAction to 'isSessionIDInRequest' always
> comes up false and 'sessionID' always is null. I've tried
> constructing the URL through WOActionURL and
> 'directActionURLForActionNamed'.
WOActionURL? WOContext you mean? If you are doing this in Java,
WOContext.directActionURLForActionNamed should do what you want.
> Both make a [what looks like] a valid directaction URL.
> But when sent it never finds the session from the cookie. Is there
> something else I have to do when trying to use a DirectAction in a
> session?
Log out the request headers. Is the cookie in there?
Chuck
--
Chuck Hill Senior Consultant
/ VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
------------------------------------------------------------------------
Disclaimer
The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden