# Cookie issue

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

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [April 11, 2016, 8:46am UTC](https://www.ruby-forum.com/t/cookie-issue/244436/1 "2016-04-11T08:46:20Z")

</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
