Forum Discussion
TheEndless
15 years agoRoku Guru
If it helps, here's a function I wrote for one of my channels...
Function GetCookieValueFromHeaders( cookieName As String, headersArray As Object ) As String
cookieValue = ""
For Each header in headersArray
If header[ "Set-Cookie" ] <> invalid And header[ "Set-Cookie" ].InStr( cookieName + "=" ) = 0 Then
cookieValue = header[ "Set-Cookie" ].Mid( cookieName.Len() + 1 )
cookieValue = cookieValue.Mid( 0, cookieValue.InStr( ";" ) )
Exit For
End If
Next
Return cookieValue
End Function