How to set up cookie consent

by eu right I need the consent of the visitor first, before cookies can be put to use. So, how would I go about doing just that.

  • load page without cookies
  • ask for permission
  • load cookies
  • remember decision

I would achieve that with :

  • A variable in Session : Cookies turned off.
  • Modal -> Accept btn -> Ajax call to controller/action to set the session variable to true.

Now in your config you check if there is a cookie to use (as usual), if not, offer the Model/fixed bottom/…