refine class SessionManager
finally, the important Session class...