Problem with retrieveing a stored cookie

Posted by Shrewd Demon on Stack Overflow See other posts from Stack Overflow or by Shrewd Demon
Published on 2010-05-10T07:22:34Z Indexed on 2010/05/10 8:14 UTC
Read the original article Hit count: 154

Filed under:
|
|
|
|

Hey,

I wanted to know if we can access the HttpContext class in the App_Code folder. I am asking so because i have a CommonMethods.cs class inside my App_Code folder.

I have written a method that checks if a cookie exists on the client machine or not, but it does not return the cookie.

Although when i write the same code on the ASPX.cs page i get the cookie!!

can anybody clarify me as in whats going on??

thanks

© Stack Overflow or respective owner

Related posts about httpcontext

Related posts about sessions