Shorten Cookie Length
February 27, 2013 12:00 AM
Is there a way to shorten the cookie length within Lectora 11? We are publishing to HTML and not using an LMS, and would rather not have to include this piece in the javascript.
Discussion (3)
Hi Angie,
Can you provide some further detail? Are you asking how to shorten the duration of the cookie or the length of the cookie itself?
We are looking to shorten the duration of the cookie.
You can use the Reset Variable action and this will clear out all of the data saved in the cookie. One way to do this is to capture the amount of log-ins on the first page using a variable, and trigger the Reset Variable action after a certain number of log-ins.
For example:
Variable: LogIn [Initial value=0]
Action on First Page: On show, Modify VAR(LogIn) +1; Condition VAR(LogIn) <=2; Else Reset All Variables
This would cause the Variables to reset on the 4th login.
Discussions have been disabled for this post