Fixed #100 IE reset session

Please test it on IE before merging