locked
Writing & Reading a Cookie with .NET Worker App RRS feed

  • Question

  • We have a .NET application used by ADFS for Multi-Factor Authentication. It is a Class Library type project (Worker Process) that is based on .NET but it is not a web application.
    We need to write and read a custom cookie (http only & ssl only] as a part of our application. (Javascript is not an option since it is not secure.)


    All of the .NET documentation we have found on writing and reading cookies ALL use: HttpContext object. I have been told that HttpContext only works with .net applications that are hosted using .NET, framework, and THEREFORE the HttpContext methods will NOT work. So far all these methods come up/return null.

    This is beyond frustrating. It should be pretty straight forward to write and read a cookie.
    What are we missing?

    • Edited by amfa_guru Wednesday, September 19, 2018 2:12 PM edited description
    Wednesday, September 19, 2018 12:47 PM