Re: [Proftpd-user] Be sure a user can login once at the same time

TJ Saunders <[email protected]>
Newsgroups gmane.network.proftpd.user
Message-ID <1529366071.2687635.1412470304.30222135@webmail.messagingengine.com>
>  How do you handle the case where user logged in but got disconnect 
> (e.g. firewall dropped connection) and attempt to reconnect.  Would this 
> mechanism be able to pick up the disconnect event and allow the user to 
> reconnect?

Good catch! For this case, you would also want to use e.g.

  SQLLog EXIT ...

and decrement the session count for that user in the table.  The "EXIT" pseudo-command is handled, by mod_sql, whenever the connection ends, be it normally or abruptly.

Cheers,
TJ

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ProFTPD Users List   <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.