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)
-
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.
-
0
I'm agree with @apexdodge.
Have an answer to this question?
Log in
and write your answer.