WebSession.Cookies.Value

From Xojo Documentation

Method

WebSession.Cookies.Value(Name As String) As String

New in 2010r4

Supported for all project types and targets.

Returns (as a String) the value for the cookie that matches the name passed. If the named cookie is not found, this method returns an empty string.

Example

// in a button on a webpage
MessageBox(Session.Cookies.Value("CookieName"))

See Also

WebSession.Cookies.Count, WebSession.Cookies.NameAtIndex, WebSession.Cookies.Remove, WebSession.Cookies.Set