Hi,
thank you!
My module is basically for resource protection.
I have already running my module on other servers also.
My module follow below steps.
-Generate cookie and write in response header
-read from header when cookie is needed
IIS have API setheader() to set header and getheader() to get header.
Apache have apr_table_get() to get value from header and apr_table_set() to
set the value in header.
Do we have similar APIs in nginx?
How i can achieve same kind of behavior in nginx?
Regards,
Pankaj
On Wed, May 4, 2016 at 7:16 PM, Valentin V. Bartenev <vbart@nginx.com>
wrote:
> On Wednesday 27 April 2016 21:51:33 Pankaj Chaudhary wrote:
> > Hi,
> > Thank you,
> > I got this point.
> > But in my case i need to set cookie value in header later read from
> header
> > the same value.
> > Is any example which i can follow for my requirement, can you suggest
> > please.
> >
>
> I believe there are no examples for your requirement, since it's not
> something that is expected to be done with headers.
>
> As I've already wrote before, saving and accessing the same value from
> headers structure is a bad idea. I don't understand the reason why
> someone ever wants to access his own value such a strange way.
>
> Maybe if you clarify what the purpose of your module is, a better solution
> will be found.
>
> wbr, Valentin V. Bartenev
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx