#4295

Fix for:
#4295 Problem when session expires while importing file

(I am a GSoC aspirant)