Fix broken session handling
Merge pull request #3 from tobiasmuecksch/master

Fix broken session handling