Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Cookies in application service #582


User avatar
0
agunghehe created

Hi,

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?

Thanks


2 Answer(s)
  • User Avatar
    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.

  • User Avatar
    0
    hikalkan created
    Support Team

    I'm agree with @apexdodge.