The "General Data Protection Regulation" (GDPR) (Regulation (EU) 2016/679) is a regulation by which the European Parliament, the Council of the European Union and the European Commission intend to strengthen and unify data protection for all individuals within the European Union (EU).
Cookie consent feature allows you to ask and track consent from users for storing personal information.
If app has CheckConsentNeeded set to true than application prompt user with below screen.
If user has not consented (not Accepted) for collecting his data then non-essential cookies would not be sent to the browser.
In this case only essential Cookies would be sent to the browser.
Session state and TempData would not work because Session and TempData cookies are not essential.
However, in this case you can make them essential to work.
Below code makes a cookie essential
HttpContext.Response.Cookies.Append("CookieName", "CoockieValue",
new CookieOptions() { IsEssential = true });
Add below code into Configure() method of Startup.cs to make Tempdata cookie essential (You need to inject CookieTempDataProviderOptions into Ioc container)
services.Configure<CookieTempDataProviderOptions>(option =>
{ option.Cookie.IsEssential = true; });
User Accounts
If your application is setup with user accounts. User need to register with few details and .Net Core stores that user's data.
User data can be viewed and deleted by the user. Data can be downloaded in json format.
Cookie consent feature allows you to ask and track consent from users for storing personal information.
If app has CheckConsentNeeded set to true than application prompt user with below screen.
If user has not consented (not Accepted) for collecting his data then non-essential cookies would not be sent to the browser.
Session state and TempData would not work because Session and TempData cookies are not essential.
However, in this case you can make them essential to work.
Below code makes a cookie essential
HttpContext.Response.Cookies.Append("CookieName", "CoockieValue",
new CookieOptions() { IsEssential = true });
Add below code into Configure() method of Startup.cs to make Tempdata cookie essential (You need to inject CookieTempDataProviderOptions into Ioc container)
services.Configure<CookieTempDataProviderOptions>(option =>
{ option.Cookie.IsEssential = true; });
User Accounts
If your application is setup with user accounts. User need to register with few details and .Net Core stores that user's data.
User data can be viewed and deleted by the user. Data can be downloaded in json format.




No comments:
Post a Comment