Cookie via called program

Iceman_a

New Member
I have a compiled program that will create cookies when ran independantly. However, when I call this program from within another, it will not set the cookies. Any ideas?
 
Hi,

Are you running your cookie program within the HEAD (to be able to set cookies you must do that - see WebSpeed docs for more information)?

Also, there needs to be a round-trip to the browser in order for you to be able to read the cookies (meaning you cannot read a cookie straight after you have created it, you first have to open a page on the browser that sets the cookie(s) and in the next request from the browser to your server you can read the cookies).

Just some ideas, not sure if this solves anything, but it's the only things I can suggest with the limited information available.
 
jongpau said:
Are you running your cookie program within the HEAD (to be able to set cookies you must do that - see WebSpeed docs for more information)?

Also, there needs to be a round-trip to the browser in order for you to be able to read the cookies (meaning you cannot read a cookie straight after you have created it, you first have to open a page on the browser that sets the cookie(s) and in the next request from the browser to your server you can read the cookies).

Here is the story. I have a static HTML page that submits to a compiled page. Based on the values submited, the program generates the HTML on the fly as in it {&OUT}'s all the html for the results of the request. Now, based on the results, my 4gl decides to make a cookie or not. If it does need to create the cookie, it calls another compiled html page. Both pages compile fine, but the cookie page doesn't work. Here is the kicker for me, if you run the same cookie page alone, it creates the cookie.

PS...I am looking in my cookie folder for the cookie upon creation and not trying to use get-cookie to check if the cookie was created as I know about the round trip.

Thanks for the help, maybe now someone will know what is going on.
 
Back
Top