Jump to content
  • 0

Logout from DataPage when page is closed



2 answers to this question

Recommended Posts

  • 0

Hi @Paolo,

You may use timeout setting of authentication in order to log-out the user.

  • Time out and redirection – Configure session expiration after user inactivity and provide a page or URL to redirect timed out users.

You can set the interval when authentication session will expire, however the log-out will happen only after session expires and user tries to do some action on a form.

It will not be possible to terminate the session of the user simply closes a browser tab or browser.

If you are looking for automatic log out even if user left the page open, then you can use the following JavaScript:

<script type="text/javascript">
document.addEventListener('DataPageReady', ()=>{


        window.location = "https://xxxxxxxx.caspio.com/folderlogout"; //your logout URL from caspio authentication

    }, 5000); // duration of session in milliseconds 


Hope this helps.



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...