# Cookie issue

**URL:** <https://www.ruby-forum.com/t/cookie-issue/244434>\
**Category:** NGINX\
**Created:** [April 11, 2016, 8:44am UTC](https://www.ruby-forum.com/t/cookie-issue/244434 "2016-04-11T08:44:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [April 11, 2016, 8:44am UTC](https://www.ruby-forum.com/t/cookie-issue/244434/1 "2016-04-11T08:44:34Z")

</div>

Hi,

This is Pankaj,I am trying to write a module which is capable to access  
header value and set header and reading cookie and setting cookie.  
if i refer apache module then found apr\_table\_get() and apr\_table\_set()  
APIs are available to get/set header/cookie values.  
I have tried to use ngx\_http\_get\_variable() API to get cookie value but  
not  
getting any value.  
Please help me on this and let me know is any other API which I can use  
for  
the same.

Thanks & Regards,  
Pankaj Chaudhary
