Update version
Add timeout param
Automatic logout if session expire