This guide helps you create an authentication form to log out authenticated users.
To follow the steps in this tutorial, you should understand the required directory structure for your codebase and the concept of pages and users. In addition, you need to understand the difference between Production and Staging Instaces.
Logging out an authenticated user is a two-step process:
app/forms/log_out.liquid
The difference between logging in and logging out is that you want to destroy the session with the latter. You must send a
app/views/pages/log-out.liquid
To set an expiration for user sessions, follow the steps outlined in the 'User Session Timeout' section of the Updating Instance Configuration tutorial.
Congratulations! You created a log-out for authenticated users. Now you can learn about resetting a user's password: Resetting the Password of an Authenticated User.
Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.