All files from this thread

File Name File Size   Posted by Date  
ngx_http_check_session.c 10.7 KB open | download replay 01/24/2010 Read message
config 170 bytes open | download replay 01/24/2010 Read message
tcpserver.py 470 bytes open | download replay 01/24/2010 Read message
nginx.conf 1.1 KB open | download replay 01/24/2010 Read message
ngx_http_check_session.c 10.8 KB open | download replay 01/27/2010 Read message
nginx.conf 799 bytes open | download replay 01/27/2010 Read message
January 27, 2010 05:26AM
thanks for the tip, the combination with mod_eval works great.

i modified my module a little and use it in combination with mod_eval
to create a variable in the nginx config file that contains the
authentication status of a user.

my colleague alvaro videla wrote a little python server which can give
me the authentication status of a user based on the php session cookie
which i am passing to him using the check_session module:

http://obvioushints.blogspot.com/2010/01/inspecting-php-sessions-from-python.html

thats cool because we can now, using this variable in the nginx
config, cache pages in memcache which are specific to an
authentication level. thats going to save us a lot of cpu on our
really have php framework.

i attached my modified module and a test nginx config to the mail.

mauro




On Sun, Jan 24, 2010 at 23:59, Mauro Stettler <mauro.stettler@gmail.com> wrote:
> looks great, i will try that,
>
> thanks
>
>
>
> On Sun, Jan 24, 2010 at 23:49, Piotr Sikora <piotr.sikora@frickle.com> wrote:
>> Use eval module.
>>
>> Best regards,
>> Piotr Sikora < piotr.sikora@frickle.com >
>>
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://nginx.org/mailman/listinfo/nginx
>>
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Attachments:
open | download - ngx_http_check_session.c (10.8 KB)
open | download - nginx.conf (799 bytes)
Subject Author Posted

writing a module to check validity of user sessions Attachments

replay January 24, 2010 10:52AM

Re: writing a module to check validity of user sessions

Piotr Sikora January 24, 2010 10:52AM

Re: writing a module to check validity of user sessions

replay January 24, 2010 11:06AM

Re: writing a module to check validity of user sessions Attachments

replay January 27, 2010 05:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 262
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