A small change, but one I could be very grateful for in the future: I added logging of sessions on the database. Every connection to the server is now logged with:
- Time of connect
- IP address
- When it's a websocket connection:
- HTTP headers sent by client (including User-Agent)
- Whether or not this header was accepted
- Accounts the user logged into successfully (maybe I should log failed attempts, too?)
- Time of disconnect
No comments:
Post a Comment