Removed session write check

Does not work on IIS.