title: Update session within a thread
body: <p>When i try to refresh a session within a thread,its not getting refreshed.After closing the session and reopening the session,objects are refreshed properly.Why is this happening?
  Please help me out.</p>