I try it like this, ,I can get the JSESSIONID,but can't get the sessionid.
Dim no As NativeObject = wb
log(no.RunMethod("stringByEvaluatingJavaScriptFromString:", Array("document.cookie"))
Sub WebView1_PageFinished (Success As Boolean, Url As String)
Dim no As NativeObject
Dim cookies As List = no.Initialize("NSHTTPCookieStorage").RunMethod("sharedHTTPCookieStorage", Null).RunMethod("cookies", Null)
For Each cookie As NativeObject In cookies
Log($"Name: ${cookie.GetField("name")}, value: ${cookie.GetField("value")}"$)
Next
End Sub