Sending logout events

Maxim Dounin mdounin at mdounin.ru
Wed Aug 27 21:45:03 MSD 2008


Hello!

On Wed, Aug 27, 2008 at 10:39:01AM +0200, Attila Nagy wrote:

> Hello,
>
> Would it be possible to extend this protocol:
> http://wiki.codemongers.com/NginxImapCoreModule
>
> with logout (connection closed, timeout, etc) events?
>
> Something like this:
>
> GET /close HTTP/1.0
> Host: auth.server.hostname
> Close-User: user
> Close-Server: 192.168.1.10
> Close-Port: 143
> Close-Protocol: imap
> Close-Cause: logout|server_timeout|client_ssl_timeout|client_closed|server_closed|etc
> Client-IP: 192.168.1.1
>
> The main benefit would be that the authenticator application could build  
> a session table from live sessions, which is currently very hard to do.  
> This means after an authentication OK response is sent, nginx should  
> send a close event, no matter how the connection was lost (setting the  
> Close-Cause accordingly).

I believe it's wrong way to go.  Such table should be build from 
logs, not by authenticator.

Maxim Dounin





More information about the nginx mailing list