Managed session code improved and used user info

Managed Session using SharedPreference and update omar code and used
userinfo object in place of string user name, password or other
information