add cookie in handler process

2010-09-19 Thread whut_jia
Hello, I am new to apache module development,and now I have a problem. Now,I am writing a handler module.In this module,I need validate username/password infomation sent by user.After validating,I set cookie into headers_out(apr_table_set(r-headers_out,Ser-Cookie,)),and then do external

Re: add cookie in handler process

2010-09-19 Thread Ben Noordhuis
2010/9/19 whut_jia whut_...@163.com: The question is that I just get Location header but get Cookie header when I access to apache server.why?? Not sure what the question is. Do you mean that the response contains a Location header but no Set-Cookie header? If so, you probably need to use

Re: add cookie in handler process

2010-09-19 Thread Sorin Manolache
2010/9/19 whut_jia whut_...@163.com: Hello, I am new to apache module development,and now I have a problem. Now,I am writing a handler module.In this module,I need validate username/password infomation sent by user.After validating,I set cookie into

Re:Re: add cookie in handler process

2010-09-19 Thread whut_jia
Thank you,According to your ways,I use r-err_headers_out .The question is resolved! But I want ask why?Why did I can't set cookie directly in the main request r-headers_out?? Thanks, Jia At 2010-09-20 02:09:54,Sorin Manolache sor...@gmail.com wrote: 2010/9/19 whut_jia whut_...@163.com: