Each refresh or ajax call should extend the session but there is a setting in Netweaver that says after the session has existed a certain amount of time force a logout. I think its the session.invalidation.timeout setting but its been a while so you should check the Netweaver documentation for your version.
Regards,
Christian