Search notes:

vim option: sessionoptions

Controls the behavior of the :mksession command.
Apparently, in order to write session files that can be read, written and understood in both unix and windows, sessionoptions should at least contain unix and slash:
set sessionoptions+=unix,slash

See also

Vim sessions
vim options

Index