Fixed wrong sql cause reseller cannot shadow to there client.
Pass session security flag from runtime_security to second parameter in setUserSession.
Merge pull request #90 from llun/master

Fixed wrong sql cause reseller cannot shadow to there client.