WebApplication.SessionAtIndex

From Xojo Documentation

Method


WebApplication.SessionAtIndex(Index As Integer) As WebSession

New in 2011r1

Supported for all project types and targets.

The WebSession referred to by the passed Index. Index is zero-based.

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
App.SessionAtIndex(i).MsgBox("App shutdown.")
Next

See Also

WebApplication.SessionCount, WebApplication.SessionForControl, WebApplication.SessionForControlID, WebApplication.SessionWithIdentifier