I am trying to implement login functionality in our website.
I have written java code for custom login functionality by overlaying OOTB login component.
when I log in using the component the authentication succeeds...it shows in logs that it was able to log in with the user creds provided.
However the userinfo component which is included in top level header component, somehow picks up anonymous user all the time(in both author as well as publish)
On successful login I am redirecting to homepage which has userinfo included.
On login instead of showing myProfile and signOut option it still shows signIn signup combination, so in java code logs it shows user as myuser but on header page i get anonymous user.
am I missing something?