session handling
Merge pull request #15 from rmcgibbo/sessionhandling

session handling