Forwarding cookies in submissions

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Forwarding cookies in submissions

Erica Smith

Hi,

 

I’m currently using the 3.2.1 stable build of Orbeon, set up as a filter for a Java application running in Tomcat. I am not using Form Runner, I am just writing and reading form code directly.

 

I have a cookie set on the client machine. I also have a form, which uses a submission to save its instance data to a servlet in my application. The problem is that the PUT request I receive in my application does not contain the cookie information from the browser, presumably because that request is actually coming from Orbeon rather than the user’s browser.

 

Is there a mechanism in the Orbeon engine to forward any cookie information in the original request through to my application?

 

Thanks in advance,

Erica

 

 

 

 

Erica Smith
InfoMedix | Developer   

---------------------------------------------------------
Fast.     Easy.     Proven.

www.infomedix.com.au

A healthcare subsidiary of Object Group

 

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.

If you have received this email in error please notify InfoMedix Pty Ltd.

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Forwarding cookies in submissions

Erica Smith

Sorry, that should have been the 3.7.1 build…

 

From: Erica Smith [mailto:[hidden email]]
Sent: Thursday, December 17, 2009 5:59 PM
To: [hidden email]
Subject: [ops-users] Forwarding cookies in submissions

 

Hi,

 

I’m currently using the 3.2.1 stable build of Orbeon, set up as a filter for a Java application running in Tomcat. I am not using Form Runner, I am just writing and reading form code directly.

 

I have a cookie set on the client machine. I also have a form, which uses a submission to save its instance data to a servlet in my application. The problem is that the PUT request I receive in my application does not contain the cookie information from the browser, presumably because that request is actually coming from Orbeon rather than the user’s browser.

 

Is there a mechanism in the Orbeon engine to forward any cookie information in the original request through to my application?

 

Thanks in advance,

Erica

 

 

 

 

Erica Smith
InfoMedix | Developer   

---------------------------------------------------------
Fast.     Easy.     Proven.

www.infomedix.com.au

A healthcare subsidiary of Object Group

 

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.

If you have received this email in error please notify InfoMedix Pty Ltd.

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: RE: Forwarding cookies in submissions

Maciej Arciuch
Erica Smith pisze:
>
>  
>
> Is there a mechanism in the Orbeon engine to forward any cookie
> information in the original request through to my application?
>
>  
>
I know nothing about cookies forwarding, perhaps it would be possible to
store your data in the request header? If so, try using:

    <property as="xs:string"  
name="oxf.xforms.forward-submission-headers"              
value="Authorization"/>

Hope it helps,
--
Maciej Arciuch
programista
tel. +48 22 564 2482


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Forwarding cookies in submissions

Erica Smith
Hmm... The cookie I need to have sent through is actually set from another application running on the same domain, so I need to be able to capture its value at the time the request is sent from the browser. Is there any way then, from inside a form, to retrieve the cookie and put it into the submission headers?



-----Original Message-----
From: Maciej Arciuch [mailto:[hidden email]]
Sent: Thursday, December 17, 2009 8:25 PM
To: [hidden email]
Subject: [ops-users] Re: RE: Forwarding cookies in submissions

I know nothing about cookies forwarding, perhaps it would be possible to store your data in the request header? If so, try using:

    <property as="xs:string"  
name="oxf.xforms.forward-submission-headers"              
value="Authorization"/>

Hope it helps,
--
Maciej Arciuch
programista
tel. +48 22 564 2482


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: RE: Re: RE: Forwarding cookies in submissions

Steve Bayliss
Maybe xxforms:get-request-header('Cookie')?

This thread might shed some light on this -
http://mail-archive.ow2.org/ops-users/2009-03/msg00211.html

-----Original Message-----
From: Erica Smith [mailto:[hidden email]]
Sent: 18 December 2009 01:45
To: [hidden email]
Subject: [ops-users] RE: Re: RE: Forwarding cookies in submissions


Hmm... The cookie I need to have sent through is actually set from another
application running on the same domain, so I need to be able to capture its
value at the time the request is sent from the browser. Is there any way
then, from inside a form, to retrieve the cookie and put it into the
submission headers?



-----Original Message-----
From: Maciej Arciuch [mailto:[hidden email]]
Sent: Thursday, December 17, 2009 8:25 PM
To: [hidden email]
Subject: [ops-users] Re: RE: Forwarding cookies in submissions

I know nothing about cookies forwarding, perhaps it would be possible to
store your data in the request header? If so, try using:

    <property as="xs:string"  
name="oxf.xforms.forward-submission-headers"              
value="Authorization"/>

Hope it helps,
--
Maciej Arciuch
programista
tel. +48 22 564 2482



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws