Welcome! Log In Create A New Profile

Advanced

Re: how to get uid_set by userid module in php

Maxim Dounin
March 01, 2010 06:08AM
Hello!

On Mon, Mar 01, 2010 at 05:15:19AM -0500, lostsnow wrote:

> i set
>
> fastcgi_param UID_GOT $uid_got;
> fastcgi_param UID_SET $uid_set;
>
>
> in my nginx configuration file
>
> and enable userid module
> but i can not get uid_set by $_SERVER['uid_set'] in php when a user visit my site first time
> and the uid_set is empty also in access log.
>
> when i delete
>
> fastcgi_param UID_GOT $uid_got;
> fastcgi_param UID_SET $uid_set;
>
>
> i can see uid_set value in access log.

Variables $uid_got and $uid_set are only available after userid
filter during sending headers. This happens before ssi/xslt
filtering (and of course logging), just after headers filter
(which handles expires and add_header).

An attempt to use these variables before they are available will
cache an empty value and you'll won't be able to see real values
at all.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

how to get uid_set by userid module in php

lostsnow March 01, 2010 05:15AM

Re: how to get uid_set by userid module in php

Maxim Dounin March 01, 2010 06:08AM

Re: how to get uid_set by userid module in php

lostsnow March 01, 2010 09:54PM

Re: how to get uid_set by userid module in php

cowboy129 November 18, 2011 11:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready