Can you post a code snippet of the logic you have written to refresh the session. I don't see a reason it should block the session.
You can use set.timer() function or a progress indicator. Refer this
Unless you try to do something beyond what you have already mastered, you will never grow!