Not working logout button

Wappler Version : 5.1.2
Operating System : Windows 10
Server Model: PHP
Database Type: MySQL
Hosting Type: local

What do you think should happen?

It should log out and redirect, instead of readirecting only…

What actually happens?

It only redirects, but it doesn’t log out

Description

I have a really simply log in and log out webpage that I reproduced from https://docs.wappler.io/t/logout-create-a-working-user-logout-button/2851 following this steps really carefully.

This is my log in server sourrunded by conditions, and it works just fine:

It effectively redirects to another page that is effectevly protected from unauthorised users (as I have checked with an incognito window)

image

I havea logout button…

…and the related server connect:

As you can see, it redirects on success.

Here is the Logout API:

What is happening is that, if user clicks log out, he is redirected, but not logged out, as I can browse to the restricted webpage as if i where loged in.

I’ve checked really carefully the forum and tutorial, but I can’t see any issue.

Can anyone help me or this is a bug?

Just in case, I’ve read and studied post Logout not working on mobile 🔐

Community Page
Last updated: