WebApplication.SessionAt
From Xojo Documentation
Method
![]() |
This method is only available for Web applications. |
WebApplication.SessionAt(Index As Integer) As WebSession
New in 2020r1
Supported for all project types and targets.
New in 2020r1
Supported for all project types and targets.
The WebSession referred to by the passed Index.
Sample Code
This code in a Button on a page will display a Message Box on the current page for all connected Sessions:
For i As Integer = 0 To App.SessionCount - 1
Var sessionContext As New WebSessionContext(App.SessionAt(i))
MessageBox("The app will be shutting down in 5 minutes.")
Next
Var sessionContext As New WebSessionContext(App.SessionAt(i))
MessageBox("The app will be shutting down in 5 minutes.")
Next
See Also
WebApplication.SessionCount, WebApplication.SessionForControl, WebApplication.SessionForControlID, WebApplication.SessionWithIdentifier