get a cookie from cookies - WeOnlyDo Discussion board

get a cookie from cookies (wodHttpDLX)

by Klinzter, Friday, November 13, 2009, 23:38 (5284 days ago)

hello there..
when I do a request I see about 5 different cookies..
Is it possible to make something like

EmailCookie = wodHttp.Request.Cookies.ToString.Email

or something so that I can grap the Email cookie?

Re: get a cookie from cookies

by woddrazen, Friday, November 13, 2009, 23:46 (5284 days ago) @ Klinzter

Klinzter,


I'm not sure that I understand your question.

You can read cookies from Cookies collection
[code]Dim i As Integer

For i = 0 To http1.Response.Cookies.Count - 1
Debug.Print http1.Response.Cookies(i).Name & : & http1.Response.Cookies(i).Value
Next i[/code]
So you want to read only one cookie value from collection? If I misunderstand your question can you maybe explain it little bit more?


Drazen

Re: get a cookie from cookies

by Klinzter, Friday, November 13, 2009, 23:55 (5284 days ago) @ woddrazen

perfectly this did the trick..

sEmail = wodhttp.Request.Cookies.Item( Usermail ).Value

thanks a lot!