added session in hash representation
doco
added set_session method