Enable session only when importing via ajax