When refreshing a page that has checked for a session the session ends. Had someone test it on their hosting and the code worked fine.