Explore the community Forums Lectora Lectora Questions & Answers Creating cookies or cookie variable in Lectora

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #283641 Score: 0
    Profile photo of makseph
    makseph
    Member
    @makseph

    Hi,

    Does anyone know if it’s possible for a cookie variable be created in Lectora?
    I’d like to know if a cookie variable can be created by clicking a button at the end of the course and that cookie would be something that indicates completion of the course or the module. Any kind of advice or help would be very much appreciated.

    Thanks in advance.

    Regards,
    Mark

    #287536 Score: 0
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    336 pts
    @ssneg

    IIRC, when you choose to retain variable in Lectora, they are stored as cookies, achieving exactly what you need. In other words, every Lectora variable is a cookie variable.

    #320040 Score: 0
    Profile photo of Michael Smith
    Michael Smith
    Member
    beginner
    intermediate
    wise owl
    friend finder
    curious george
    @msmith2572

    I created a menu system Title in lectora and then I am launching a number of titles from that menu. The target titles will play differently based on selections made in the menu.  I was going to create a cookie from the menu title and then read it from the target title. This was a planned method to have the ability to pass a variable assignment to the target titles.

    I tried using the method listed above, but that did not appear to allow me to read the variable from the target title. .  Is there any other way to pass variables between titles hosted on the same domain?   I figured I would need to set the cookie and value using java script but I am not sure how that is done. Any ideas?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.