UIO settings saved in the cookie are discarded once quit the browser

Description

The bug report from Jonny:

"On my site <http://abledaccess.com> when I change the display setting via uiOptions in the latest versions of Safari, Chrome, Opera and IE, then quit each browser, my settings I set have been reset. Same goes with your demo across said browsers, as well. I saw on Colin's computer this behaviour doesn't happen in Firefox, but it happens on my machine in Firefox, as well. But the reset did happen in Safari, Chrome and Opera on his computer. "

Environment

Safari, Chrome, Opera and sometimes firefox

Activity

Show:

Justin Obara June 10, 2015 at 5:53 PM

I'm not really sure what we want the default to be for the cookie expiration.

  • browser quit

  • some number of days

  • forever

  • etc.

and did you have any thoughts?

Cindy Li November 29, 2011 at 7:55 PM

The issue seems a result of our improper default value for the cookie "expiry" attribute, which is blank by default:

https://github.com/fluid-project/infusion/blob/master/src/webapp/components/uiOptions/js/Store.js#L60

According to http://www.tutorialspoint.com/javascript/javascript_cookies.htm, which says,

Expires : The date the cookie will expire. If this is blank, the cookie will expire when the visitor quits the browser.

So, a blank default apparently is not enough if what we meant is to keep the user-selected settings forever. We probably should consider to have a default expiry value of 50 years from now.

Details

Assignee

Reporter

Components

Affects versions

Priority

Created November 29, 2011 at 7:54 PM
Updated September 26, 2017 at 4:41 PM