# Passing variables to handler function

**URL:** <https://www.ruby-forum.com/t/passing-variables-to-handler-function/225048>\
**Category:** NGINX\
**Created:** [December 9, 2012, 11:20am UTC](https://www.ruby-forum.com/t/passing-variables-to-handler-function/225048 "2012-12-09T11:20:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [December 9, 2012, 11:20am UTC](https://www.ruby-forum.com/t/passing-variables-to-handler-function/225048/1 "2012-12-09T11:20:02Z")

</div>

Good morning,

I’m writing a custom Nginx module and am using NGX\_AGAIN to call the  
handler several times, however am at a loss about how to pass a variable  
between calls. I want to use the variable to differentiate between  
states.

Does anybody have any suggestions?

Peter R.
