Hi Yordan
I can no now reproduce your problem and see your use case!
I think we have a bug there because on login we change the session id and we then do not map the correct session.
As workaround you could disable RenewIdOnLogin like this in ivy.yaml:
Session:
RenewIdOnLogin: false
With the follwowing code you can get the current http session id:
Ivy.request().getSession().getHttpSessionIdentifier();