How do you prepare response page in handleURL?

@Ian Jones many thanks!
I didn’t want a new browser window to open. The session id message, being generated internally will eventually come from a client who has a cookie.

I’m wondering if somehow in this method I am not returning true or false properly to indicate that I didn’t do anything with the url (because it didn’t have a session id and I want a new session) vs this has a session id and I want to pass it on and consider the event handled.

[code]Function HandleSpecialURL(Request As WebRequest) As Boolean
Dim rq As String
dim params(-1), keyval(-1), key, value, id as string
dim q as new Dictionary
dim i as integer

rq = Request.QueryString

params = rq.Split("&")
for i=0 to params.Ubound
keyval = params(i).Split("=")
key = keyval(0)
value = keyval(1)
q.Value(key) = value
next

if q.HasKey(“identifier”) then
id = q.Value(“identifier”)
for i = 0 To App.SessionCount - 1
if id = App.SessionAtIndex(i).identifier then
App.SessionAtIndex(i).AcceptRequest(q)
return true // This url is handled and can now be ignored.
end if
Next
else
// So this is a request for a new session.
return true // let the app handle it normally?
//context.Session.CurrentPage = New myWebPageSubClass // Can I change this based on other parameters?
//Request.SetCookie
end if

// Not reached?
Return false // What should I return.
End Function[/code]