Si Young Kim
Si Young Kim

Reputation: 113

using WebMethod to read cookie but no Request.Cookies collection

I am trying to read cookie without post back. I used WebMethod to save the cookie, but cannot find way to retrieve it. For some reason, I cannot find Request.Cookies collection so that I can retrieve the value of it. Any help will be appreciated!

Upvotes: 3

Views: 5502

Answers (1)

Ali Foroughi
Ali Foroughi

Reputation: 4599

use this in your web method

HttpContext.Current.Request.Cookies

Upvotes: 9

Related Questions