I'm using Craft Pro to make a website where users have a private area. Users register and when login happens they are redirected to a page in the private area with respective info about that user.
When i use {% requireLogin %}
with {{ currentUser.id }}
Craft 3 outputs the ID of the user that has active login in the CP (control panel).
But what I need is the ID of the user that made login in the frontend to access private area and not user ID that is logged in CP.
I'm reading the Craft 3 docs but I didn't find the answer I'm looking for.
Any suggestions?