Fixed write_cas by adding session::clone()
Merge pull request #72 from euroelessar/master

Fixed write_cas by adding session::clone()