Fix session persistence sql vulnerabilities
Merge pull request #341 from tiegz/session_vulnerability

Fix session persistence sql vulnerabilities