Geoffrey Young wrote: >Axel Andersson wrote: > >>Hello, >>I'm having trouble with both setting a cookie and redirecting the user to >>another page at the same time. It would appear the cookie is only sent >>when a normal header is sent by server. >> > >this is a common problem - you have to add the cookie to the >err_headers_out table instead of the headers_out table. > >if you are using Apache::Cookie then this is done for you, otherwise >you have to populate the correct set of headers. > >see > >http://perl.apache.org/guide/snippets.html#Sending_Cookies_in_REDIRECT_Resp > >or Recipes 3.7 and 3.13 in the mod_perl cookbook > >--Geoff > Geoff: I think I did this with my own module with no success... I'd end up with an extra set of headers, if I was _lucky_... Also, when I got it to redirect OK, even when I saw the cookie, sometimes the browser would not eat the cookie properly... I don't have more specific details, because this was months ago and the project was not (then) under CVS control (now it is, of course)...
Issac