Answered by:
Get session or cookie in class

Question
-
User-1280583946 posted
Hi All,
I'm just wondering can i get the cookie or session fron a function in a class file?
I am now calling checking the cooking and session in every page, so it would be easy if i can just get their information from a public function.
Please assist. Thanks
Tuesday, July 12, 2011 10:22 PM
Answers
-
User197322208 posted
Add a reference to System.Web and use HttpContext.Current.Session
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, July 13, 2011 12:41 AM -
User-1177472553 posted
HttpContext.Current.Response.Cookies
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, July 13, 2011 2:41 AM
All replies
-
User197322208 posted
Add a reference to System.Web and use HttpContext.Current.Session
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, July 13, 2011 12:41 AM -
User-1280583946 posted
what about cookies?
Wednesday, July 13, 2011 12:47 AM -
User-1177472553 posted
HttpContext.Current.Response.Cookies
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, July 13, 2011 2:41 AM -
User-1280583946 posted
Thanks
Wednesday, July 13, 2011 2:57 AM