Cheers James, will see how I get on now :) On 4 Nov 2007, at 13:44, James Holmes wrote:
> If there is a jsessionid showing in SESSION.URLToken then J2EE > sessions are enabled. As the blog to which I linked says, the > jsessionid needs to be in a different place than that in which it > appears in session, URLToken - it needs to be before any query > variables, like this: > > http://blah.blah.com/somepage.cfm;jsessionid=xxxxxx? > somevar=y&someothervar=z > > On Nov 4, 2007 5:49 PM, Simon Bailey <[EMAIL PROTECTED]> wrote: >> Hi James, >> >> I am asking the server host if J2EE sessions are enabled, on checking >> the URLToken, I note that there is a jsessionid along with the cf >> variables which I appended to the URL so if J2EE is enabled was >> receiving the correct criteria on the URL. >> >> >> On 4 Nov 2007, at 02:02, James Holmes wrote: >> >>> Are you using J2EE sessions on CF7 or higher? If so, you need the >>> jsessionid to be written in the correct place in the URL, which >>> isn't >>> as a url var, it's as a ;jsessionid=xxxxxx attached to the URL, >>> since >>> your doing a POST. >>> >>> http://coldfused.blogspot.com/2006/09/handling-j2ee-session-with- >>> cookies_12.html >>> >>> On Nov 4, 2007 6:22 AM, Simon Bailey <[EMAIL PROTECTED]> wrote: >>>> Hi, >>>> >>>> I am having great trouble with Flex and ColdFusion when it comes to >>>> uploading. I can upload fine to a server with no authentication >>>> set >>>> up but as soon as I start to upload using FileReference and >>>> UrlRequest to a server with authentication from cflogin problems >>>> occur. Basically it fails silently, it displays progress in the >>>> upload and that the upload was successful but my files is not >>>> there. >>>> I have check all my scripts and location for the file upload and it >>>> just aint happening. I have tested a simple cfm upload form and >>>> hit >>>> that fine, uploaded and can write to files also on the remote >>>> server >>>> so I know thats set up fine. >>>> >>>> So after much googling I have found that when using >>>> FileReference for >>>> uploading the upload will use a new browser session to upload the >>>> files and therefore remove all session variables!!! Arrrrggh! >>>> So my >>>> work around has involved grabbing the session.URLToken, sending >>>> that >>>> into my Flex app and then when I call the upload cfm script pass >>>> the >>>> session.URLToken variables in the url string like so: >>>> >>>> request = new URLRequest(); >>>> chosenFile = fr.name; >>>> request.url = UPLOAD_URL+"?"+sessionVars; >>>> >>>> Problem is it still doesnt work? >>>> (a) I dont know if that is enough to satisfy cflogin criteria >>>> i.e. do >>>> I need to set anything in the upload.cfm page to say that these are >>>> the session variables. >>>> (b) another weird thing is that if it is starting a new browser >>>> session why am I not presented with my login panel as requested >>>> by my >>>> Application.cfc? >>>> >>>> Any one else suffered here or could make a suggestion please :) >>>> >>>> Simon >>>> >>>> >>> >>> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4777 Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
