in reply to Regarding session path
I would have thought that "C:\\TEMP" should work (assuming that C:\TEMP actually exists?).
For a more portable solution you might want to look at the File::Temp module:
use File::Temp qw(tempdir); [download]