Thank you for this question and the answers because this is what I'm looking for, however, I'm trying to apply this to a Form instead and it's not quite working.
Let me explain...
1. Authentication Page: User goes to a web page in which they must "authenticate" a code. This is a Caspio Embedded data page with Authentication.
2. Redirected based on Code: Depending on the code they are redirected to a specific page, which is actually a Form. (So at this point, they are logged into Authentication).
3. Enrollment Form: User completes the form (an embedded Caspio form).
4. Submit: Once they hit Submit, there is a Display Message and an is Email sent.
I tried the code above and it does redirect, but bypasses the Authentication Page. So they are never "logged out". I need it to log out so they can enter a new code. Unfortunately I can only set the automatic logoff to a minimum of 15 minutes.
Any suggestions would be greatly appreciated.
Thank you,
Kim