How do you access cookie values in the controller?

Last post 07-17-2008 5:39 AM by jdelator. 1 replies.

Sort Posts:

  • How do you access cookie values in the controller?

    07-17-2008, 5:15 AM
    • Member
      5 point Member
    • jdelator
    • Member since 06-21-2008, 9:08 PM
    • Posts 12

    Request and Response seem to be set to null.

  • Re: How do you access cookie values in the controller?

    07-17-2008, 5:39 AM
    • Member
      5 point Member
    • jdelator
    • Member since 06-21-2008, 9:08 PM
    • Posts 12

    Alright I figured out that they are not null in the Action Methods but are null in the class creation.

    The case where it didnt work was when I had a controller inheriting from a base controller. When the base controller was being created, Request and Response were null and that is why I couldn't access the cookies. It seems when it returns the subclass request and response arent null anymore though.

Page 1 of 1 (2 items)