New custom script: /usr/local/directadmin/scripts/custom/session_create_pre.sh Very similar to login_pre.sh: http://www.directadmin.com/features.php?id=1223 however, the login_pre.sh is called for every request, and checks the password for each one. The session_create_pre.sh only applies to DA, just before it creates the session file, but after the password has been validated. Note that API calls *DO NOT* use session files, so this should not be a login filter. This script can be handy if you'd like to notify yourself of a session based login, but you won't be notified for any API based actions for the same account (this won't be called for API calls) The variables passed will be the same as the login_pre.sh, so check id=1223. except I've added a new env variable: session_id=thesessionid to both the login_pre.sh and session_create_pre.sh. Be sure to exit with a zero-status. If you exit with a non-zero status, the write of the session file will be aborted, and the login won't work. All non-zero exit statuses will be logged to the /var/log/directadmin/error.log, but the login page will just refresh with no errors.