HttpUseridModule

Hi,

I am trying to use the HttpUseridModule but I am not able to set the
cookie, however I can see that the request has been sent and the browser
allows cookie.

$uid_got $uid_set
- uid=4D01310AD0BA0750254E223402040303
- uid=4D01310AD3BD0750D54FFDA202050303

Below you can see the conf that I used in the test. Is there something
missing?

server {
listen 80;
server_name boo;

# log files
access_log /etc/nginx/logs/access.log;
error_log /etc/nginx/logs/error.log warn;

# directory
root   /home/test/public_html/boo;
index  index.html;

location / {
  userid          on;
  userid_name     uid;
  userid_domain   example.com;
  userid_path     /;
  userid_expires  365d;
  userid_p3p      'policyref="/w3c/p3p.xml", CP="CUR ADM OUR NOR STA 

NID"’;
}

error_page   401 403 404      /40x.html;
error_page   500 502 504      /50x.html;

}

/Ollivera

Hello!

On Thu, Jul 19, 2012 at 08:18:31AM +0000, Flavio Oliveira wrote:

Below you can see the conf that I used in the test. Is there something missing?

server {
listen 80;
server_name boo;

[…]

  userid_domain   example.com;

The “example.com” isn’t likely to work here unless you indeed use
example.com hostname to access your site. Though different server_name
suggests you don’t.

Maxim D.

Hi,

Is it possible to extend the cookie lifetime (expiration time for the
cookie)?

I would like to set short periods (userid_expires 2h) and extend that
(for more 2 h) if the session is still active.

Regards, Flavio

Flavio,

I’m trying to do the same as you.

Have you found any solution?

I was thinking in change the expiration by myself setting the cookie
again, but I think that this is ugly =/

Thank you,

Gabriel Arrais