Added read only session support
Merge pull request #527 from sheebans/master

Added read only session support