It should work as Christian said.
I’ve got an example project here that demonstrates similar things. Send messages do different sessions.
[url=https://www.box.com/s/bk6g7l4fixbfcxnwdqbq[/url]
With the exception of a Msgbox for some reason it appears that you can only interact with a webpage control using sessionatindex or session.indentifier from within another page session and not from the App class.
I did look at the example which is based upon the Push Example Project. Interacting with a Webpage session from a seperate Webpage session works all well and good. The problem that I am having it interacting with a Webpage session from the Project App class.
If you look at my example app DemoWebApp_zip may explain the problem I am experiencing.
I have added a Timer class to the Project (not the Webpage) and a text label to a Webpage. The current timer event action is:
For i As Integer = 0 To App.SessionCount-1
App.SessionAtIndex(i).MsgBox("This is a message.")
Next
//Send messagebox to all webpage sessions - This works ok
I am needing to change the text label to all Webpage sessions again from within the Timer.
For i As Integer = 0 To App.SessionCount-1
App.SessionAtIndex(i).Webpage.All.Sessions.Label.Text="My_String"
Next