fix multi session support
Merge pull request #141 from doctrine/fix_multi_session

fix multi session support