Jump to content
  • 0

Forced Logout within iFramed Implementation



I have a workflow where I want to force a logout at a certain step in the process, and then have the user log back in.  

I'm using the window.location.href=... logout folder approach, which is working ok, but the user experience is bad because they land on the root caspio folder.  There is a fix for that problem described in the online help (https://howto.caspio.com/troubleshooting/issue-with-redirection-after-logout/), but it assumes that the user is clicking a physical link - i.e., I can't add that parameter to the "window.location" solution.

I've tried creating a custom logout page (an HTML page with the logout page invisibly iframed into it, but it did not log out the user.

Would welcome suggestions!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @DaveS

Using JavaScript you can imitate clicking on logout link using click() function

It will look something like this:


For this to work, logout link should be added on the datapage. it can be hidden, for example

<a href="https://YOURACCOUNTID.caspio.com/folderlogout" style="display: none;">logout</a>

You can trigger JavaScript code based on your specific condition.

Link to comment
Share on other sites

  • 0

Thanks for the reply, @Volomeister!  Your part is working... Caspio's part still isn't.  I was experiencing this issue:  https://howto.caspio.com/troubleshooting/issue-with-redirection-after-logout/ and needed to have an href to implement their proposed solution...  but even with the href I still land on the root page of my caspio domain.  I've opened a ticket with support - and I really appreciate your response.!  

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...