Issue #2164025 by skipyT, pwolanin: Improve security of session ID against DB exposure or SQL injection.