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