Hello!
On Fri, Dec 5, 2014 at 4:46 AM, serj.kablov wrote:
> Try to get uid_got(as I see it creates in user_id module) variable from lua
> but lua can't see it and I got only nill value
>
> access_by_lua '
> print("uid_got = ", ngx.var.uid_got)
> ';
> in error log I see uid_got=nil
>
Please always provide the complete (and also minimal) configuration
and your steps to reproduce the problem. There can be many things you
got wrong, like
1. forgetting to enable the userid directive in your nginx.conf,
2. sending invalid Cookie request headers in your request.
In addition, checking out the nginx error log file may be helpful too,
especially when enabling the nginx debugging logs (temporarily):
http://nginx.org/en/docs/debugging_log.html
(Just look for the log messages containing the word "uid" and "userid", if any).
Regards,
-agentzh