I managed to get the site preference management to work as well as switching from mobile to normal view. I can see there is a cookie that is stored under org.springframework.mobile.device.site.CookieSiteP referenceRepository.SITE_PREFERENCE but it is only valid for the session. When I close the browser, it doesn't remember the preference the user had. Does anyone know how to make the cookie managed by CookieSitePreferenceRepository, last longer than the session?

Thank you.