Boolean Loops With Cookie Behavior
Be gentle with me, I am quite the novice... ;)
Basic scenario:
I have a page (call it "page 1") with a link to go to a form page. Once complete, this form sets a cookie, and takes users to a download page. On subsequent visits, I would like the users to be able to skip the form page altogether and go directly from "page 1" to the download page.
Through the use of your program, I have got this working, sort of, but it is not ideal.
First, I can get the form to set the cookie, that is easy. It is the redirection that is not as clean as I would like it to be.
I cannot find a way to make the original link on "page 1" send the user to the correct page based on the cookie. I would like that link to make the *decision*, cookie = "yes", go to download page, cookie = "no", go to form page.
What I ended up doing was keeping the link on "page 1" to go to the form page only, but then on the form page, I used the "Redirect based on cookie" behavior, set to "On Load" for a small graphics file on the form page, which sends the user to the download page if the cookie exists. This means that the form page starts to load, but then redirects almost immediately. This causes a bit of a jerky hitch in the transition between "page 1" and the download page for those that already have the cookie.
When I look at the code for the cookie redirection, it looks like this:
"WA_cookieRedirect(WA_CookieObj,document,true,'TB_Download_Form','1','Downloadmusic.html',false)" />
It looks like I should be able to use this code with the original link on "page 1", yet add in a value for the "false" parameter so that the original link will make the decision to do the redirection based on the cookie. I have tried several permutations of this, but I cannot seem to get it to work.
Basically, a Boolean loop... "If, then, else" type of redirection.
Is this possible with this program? If so, would you be so kind as to supply me with the correct syntax?
Thanks in advance.