Cookie problem..

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Cookie problem..

Post by Thunderstone »




Hi there,
I am trying to get some dynamic contents onto the search results page. I use a servlet to achieve this.
I noticed that the cookies are not getting passed to the servlet from the vortex script.

I tried both fetch and submit (with method as get) to get the dynamic contents. Since the servlet logic makes the decision based on the cookie in the header its failing because of the unavailability of the cookie. Just as a sanity check i printed out the contents on HTTP_COOKIE env var just before invoking the fetch. All the cookies are intact. Seems like fetch/submit do not pass the cookie contects across....

Can exporting HTTP_COOKIE be an option ?


Any help ?

Thanx
Sumant

User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Cookie problem..

Post by Thunderstone »



Use <urlcp header> to set the cookie header to whatever you need it to be
before <fetch> or <submit>
<urlcp header Cookie $cookievals>




Post Reply