I would like to do this: Dim str As String = class.isGuest("yes")
but it won't work.
Public Property IsGuest(ByVal guestStatus As String) As String
Get
Dim guestCookie As New HttpCookie("g")
For Each key As String In Context.Response.Cookies.Keys
If key = MYACCOUNT_SESSION_COOKIE_NAME Then
guestCookie = Context.Response.Cookies.Item(MYACCOUNT_SESSION_COOKIE_NAME)
Exit For
End If
Next
guestCookie.Value = guestStatus
Response.Cookies.Add(guestCookie)
Return guestCookie.Value.ToString
End Get
Set(ByVal value As String)
Dim guestCookie As New HttpCookie("g")
guestCookie.Value = value
Response.Cookies.Add(guestCookie)
End Set
End Property