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
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
2 Answer(s)
-
0
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.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
I'm agree with @apexdodge.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)