Index: openacs-4/packages/cookie-consent/tcl/cookie-consent-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/cookie-consent/tcl/cookie-consent-procs.tcl,v diff -u -N -r1.3 -r1.4 --- openacs-4/packages/cookie-consent/tcl/cookie-consent-procs.tcl 22 Dec 2017 17:29:52 -0000 1.3 +++ openacs-4/packages/cookie-consent/tcl/cookie-consent-procs.tcl 30 Jan 2018 19:41:34 -0000 1.4 @@ -225,9 +225,17 @@ -package_id $subsite_id \ -parameter CookieConsentEnabled \ -default 0] - if {$enabled_p} { + + # + # Just do real initialization, when the cookie is NOT set. + # When more complex interactions are defined, this has to be + # reconsidered. + # + set cookie_set [ad_get_cookie "cookieconsent_status-$subsite_id" ""] + + if {$enabled_p && $cookie_set eq ""} { # - # Create an instance of the widget class from all configuration options + # Create an instance of the consent widget class from all configuration options # foreach {param default} { Layout block