I was wondering if there is a specific location for me to check if a cookie that I am using on my nopCommerce4.4 exist on the whole site. For example, I placed the cookie checker on the Home/Index controller; however, if a user tries to go to my site/contactUs page, they get right in without a cookie check. Is it possible for me to check for the cookie before going to any of the controllers, like a global cookie checker?
You can implement it the following way: 1. Add a new filter to \Nop.Web.Framework\Mvc\Filters\WwwRequirementAttribute.cs 2. Implement appropriate logic in it 3. Add this attribute to the \Nop.Web\Controllers\BasePublicController.cs
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Vous avez encore des questions ou avez besoin d'aide?