#/User transfer problem

1 messages · Page 1 of 1 (latest)

coral isle
#

/Java,spring,vaadin
Hi everyone,
i write my first app with vaadin.
I created screen where user can log in. When user is active then can press button. Button is activated, but during the button activation I loose my user. On ss you can see that user "ryba1" is logged and active while pressing, in action what should make button user is already anonymous :/
Some ideas? solutions?
On screen i try with:
SecurityContext securityContext = SecurityContextHolder.getContext();
VaadinSession.getCurrent().access(() ->{
I tried few more solutions what recommended chatgpt(CompletableFuture.runAsync((), VaadinSession.getCurrent().lock();) but it doesnt help...

blazing cipherBOT
#

<@&987246964494204979> please have a look, thanks.