Cookie Expiration Date
October 20, 2015 12:00 AM
It seems to be, that lectora modules published to HTML (no LMS) are working with cookies for variables that should be used in different sessions, which exire after one week.
Is it always one week and is there any way to manage the cookie expiration date?
Discussion (3)
If you're publishing to HTML (no LMS) the cookies will remain until the maximum amount of data is reached. I found some general guidelines doing a Google search but this doesn't take into consideration the individuals that manually clear their cookies and cache. The time frame for which one user versus another would reach these numbers really depends on browsing frequency and if you do it was a purpose lol (I like to have multiple tabs open and jump around all day long so i'm sure my turn over rate is pretty high)
All numbers are based on computer application not mobile which vary even more.
Google Chrome (Windows) browser is a dynamic cache meaning it's able to expand if necessary.
The default value of Firefox's (Windows) cache is 50 MB. The minimum value is 0. The maximum value is 1024 MB.
Internet Explorer (Windows) depends on the version you're running. IE 10 for example has a default cache size of 250MB.
Safari (for Mac OSx) is currently about 150MB and can't be updated on the newest version.
Safari (on Windows) doesn't save persistent memory.
If you're concerned with the courses performance you could ask the user to change their settings or there may be a coding trick I'm not aware of.
I quickly scanned the trivantis scripts dealing with cookies and it appears that the variables are saved without expiration date. I also found a bit that indicates a 30-day expiration:
var G = new Date();
G.setTime(G.getTime() + (30 * 24 * 60 * 60 * 1000)); //30 is for 30 days
var H = undefined
So if your cookies are gone in a week that is probably your browser or system cleanup settings.
I always get one week (see FF screenshot, same in Chrome).
We need this information to inform our users about data privacy.
Perhaps we need to provide some kind of opt-out for cookies. Is every information in the cookie deleted, when I perform the action "rest all variables"? Is there a way to delete cookies at the end of the session?

Discussions have been disabled for this post