Session not available in UserInterfaceUpdate

I have been experimenting with webthreads. It would appear that I cannot access the session within the UserInterfaceUpdate method. When I assign a var to it, I get nil. Once this event has completed and a non thread breakpoint is reached, I can access the session. Is this by design or a bug?

I am using version 2021 Release 1.1

I would guess internally it dispatches with a timer, breaking your session context. If you store the session reference, you can re-create the context. Page Not Found — Xojo documentation

I don’t know what a session is, but is it something you can pass as a reference when you call AddUserInterfaceUpdate() ?

Thank you Tim, that makes perfect sense. I’ve worked around it, so all is good.