Base solution for your next web application
Open Closed

Cookies in application service #582

agunghehe created


I would like to know if setting a cookies can be done in the application service? I am expecting if httpcontext present in this layer, so i could arrange the cookies in the response object. Please let me know if this possible?

Or i should implement this as pure mvc controller?


2 Answer(s)
  • 0
    apexdodge created

    In my opinion it's a bad practice to pull cookies from service layer. I think grab them from the web layer and pass them as parameters to the service layer.

  • 0
    hikalkan created
    Support Team

    I'm agree with @apexdodge.