Support Center
v1.0
Features
Comments
Page
Code Steps
Category
Label
Link
Separator
Title
Message
Page icon
No icon. This page keeps the plain index row.
orSVG or PNG, square, at least 32×32.
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Logging Out Readers
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
To log out readers, you can invoke the logout function on the window object. This action effectively terminates the current session, ensuring that users are securely logged out of the application.
To let users log out from a secure session, you can add a logout button in the top right corner near the navigation links. Include this Custom JS:
<script>
document.addEventListener('onprojectloaded', function () {
var logoutBtn = document.createElement('DIV');
logoutBtn.innerHTML = 'Logout';
logoutBtn.classList.add('logout'); // Style as needed
logoutBtn.onclick = function() {
window.logout();
window.location.href = '/'; // Change this to a useful link
};
document.querySelector('.links-container').appendChild(logoutBtn);
});
</script>
Last updated on May 4, 2025
Was this page helpful?
Next to read:
Searchnull
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message