localeStorage alternative using cookies when not supported

from MDN
store the sid in the settings model

if cookie disappears, data is persisted to localStorage or cookies