Checking session directory is writeable