Change session - Login

Guys,
I created this topic because I couldn’t find a specific title. That way I will explain what I want. In my app I have a login screen, a registration screen and a main menu.
The first time this user performs the access registration, filling in the login screen and password, he will be directed to the registration screen (personal data) and after that to the Main Menu. What I want is when he logs in again he is directed to the Main Menu.
I thought of using a tinydb and a session check.

image

The problem I don’t know how to do it and on which screen to put this function. Can someone help me?

Tag name is wrong. You are storing tag “second time” with value “session check” and in getvalue block you are using “session check” as tag name. You should use “second time” instead.

Plabo what I want is the following: as soon as the user logs in for the first time, he will be directed to the personal data registration screen. As soon as he saves the data, he is directed to the app menu. What I want is that the second time he logs in, he is directed to the menu screen. I used a tinydb but I don’t know if my logic is correct.
I’ll put the logic blocks and the project aia.

Uploading: blocks (2).png…
Uploading: blocks (1).png…
Uploading: blocks.png…

verifica_sessao.aia (5.4 KB)

1 Like

You didn’t update the screenshots correctly.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.