Captivate Javascript and Cookies
Hi all,
How do i go about reading a browser cookie from within a captivate project using Javascript? The need arises because I have a website with user login. Based on the type of user logged in, I will write a cookie to contain user type, i.e. 1 or 2 etc.
I would like to read this value from the cookie within a Captivate project so that I can use it in a captivate variable to determine what is shown in the project among other things.
The workflow (i'm guessing) is to first create a cookie in the browser. Let's call it usertype=1 etc.
In the Captivate project create a variable called usertype. Then use javascript to read the cookie and update the value of Captivate variable with cookie value. Then i have a usable variable in captivate for use in advanced actions etc.
Any guidance would be greatly appreciated.
Thanks
