Changed an exception
Removed the read-only session mechanism