Will ValidateUser() method in the database layer set the cookie?
I want all interaction with the db to occur on the db layer. So, when using the membership API's ValidateUser() method, I call down to it. Will this set the cookie or does it need to be called in the ui layer for a coo开发者_JAVA技巧kie to be set?
It needs to be done somewhere where the Response is generated, which is generally in a page class.
So it won't work in a DB layer.
精彩评论