Sign out Code for on-page button

I have a button on page that I would like to use for sign-out (don’t want to use ‘sign out’ in the nav on this page) - is there a custom code to sign out a user?

You could use the approach here: Logout users after a period of inactivity

You would need to write a code to hook into button click and then remove the cookie and then reload

Awesome. Thanks @artur!

Hi. Sorry, I’m new to Nocode and Softr, and I’m not a programmer. Can you help me with a seemingly simple question, but I still don’t know how to do it?
I need to understand how to create a logout function (without code) in Softr. After the user enters (login), I don’t know how to make the user EXIT, and put him in the Non-Logged User condition. Is there an automatic function in Softr for this? thanks.

Hey !

Yes you dont need custom code to offer your users a way to log out of your app.

This important function relies more on the header blocks of your softr app, the navigation to be more specific:

hello,
Thank you very much my friend. For me who is just starting to learn Softr, this type of help is very important.
Have a nice weekend.

1 Like