fixed session create and update
Merge pull request #13 from FleurBroca/fix-session-update

fixed session create and update