How do you reference a session variable when you're looping through the sessions? I'm trying to check a variable called Session.username to see if the user is already logged in on another session so I can kill the old one.
I can get the session ID with:
dim sess as WebSession for x = 0 to app.sessioncount - 1 sess = app.SessionAtIndex(x) TextArea1.text = textarea1.text + "Session ID#" + cstr(x) + ": " + sess.Identifier next x
But, I can't figure out how to reference the 'Session.username' variable for a specific session so I can compare it to the current one.