Looks like you'll need to change the 'sessionoptions'
value. From :h 'sessionoptions'
:
Changes the effect of the
:mksession
command. It is a comma separated list of words. Each word enables saving and restoring something:
localoptions
options and mappings local to a window or buffer (not global values for local options)
Ergo:
:set sessionoptions+=localoptions