Difference between revisions of "Draft:EU Cookie Law"

From X-Cart 4 Classic
Jump to: navigation, search
m (EU Cookie Law module overview)
m (Redirected page to X-Cart:EU Cookie Law)
 
Line 1: Line 1:
{{XC version|version=4.5.1|color=#FFB62F|comment={{{1|or above}}}}}
+
#REDIRECT [[X-Cart:EU_Cookie_Law]]
 
 
X-Cart's <u>EU Cookie Law</u> module is a solution for X-Cart shop owners in the European Union looking to comply with the law requiring user consent when using cookies.
 
 
 
<u>EU Cookie Law</u> is available as an X-Cart built-in module since X-Cart version 4.5.1. Implementation of the <u>EU Cookie Law</u> module functionality in earlier X-Cart versions is possible [http://www.x-cart.com/custom_development.html upon request].
 
 
 
== Background ==
 
In 2009 European legislation regulating the use of cookies and similar technologies for storing information was changed: Directive 2002/58/EC concerned with the protection of privacy in the electronic communications sector,  otherwise known as e-Privacy Directive, was amended by Directive 2009/136/EC; this included a change to Article 5(3) of the Directive, which is applicable to cookies. Revised Article 5(3) says that information (including cookies) can be stored on a user's computer, or accessed from that computer, only if the user "has given his or her consent, having been provided with clear and comprehensive information ... about the purposes of the processing." An exception is made for cookies deemed to be "strictly necessary" for the delivery of a service requested by the user.<br />
 
By May 25, 2011, the Directive was to be transposed into the national laws of  the EU's 27 member states. Although this deadline was missed by many states, the majority managed to comply with the EU cookie law by June 2012.<br />
 
Controversial as it may be, the EU cookie law is here to stay, so we came up with a solution that can help you to comply with its requirements.
 
 
 
== EU Cookie Law module overview ==
 
Here is an overview of the <u>EU Cookie Law</u> module features.<br />
 
 
 
In a store with enabled <u>EU Cookie Law</u> module, first time visitors see a panel along the top side of the webpage which informs them that the store they are visiting uses cookies, and, according to the current cookie settings, all cookies are allowed for the best shopping experience:
 
: [[Image:EU_cookie_law_panel.png|border]]
 
<br />
 
The panel provides a clear indication that the visitors can choose either to consent to the use of all available cookies or to change the existing cookie settings to refuse some of the cookies.
 
 
 
The visitors can indicate their acceptance of all cookies by continuing to use the store website without changing the cookie settings. The cookie information panel will be hidden automatically in 60 seconds (60 seconds is the default value; if necessary, the store administrator can [[#Changing the cookie informantion panel display time|readjust the cookie information panel display time]]). There is also the '''Close''' button which the visitors can click to get the panel out of the way before its display time period expires.
 
 
 
For the visitors who are not ready to allow all cookies, there is the '''Change settings''' button. By clicking this button, the visitors can access the '<u>Change cookie settings</u>' panel where they can obtain detailed information as to what cookies are used in the store and what they do, as well as indicate which cookies they wish to accept, and which to refuse. The <u>Change cookie settings</u> panel opens in a JavaScript popup:
 
 
 
: [[Image:Change_cookie_settings_popup.png|border]]<br />
 
 
 
For users' convenience, all the cookies have been divided into three types: ''strictly necessary'', ''functional'' and ''other''. "Strictly necessary" are cookies without which the store website will not be able to function properly; according to the EU cookie law, such cookies can be used without the need for the visitors' consent. As you can see from the screenshot above, the 'disable' option for this type of cookies is not provided. Unlike "strictly necessary" cookies, "functional" and "other" cookies can be freely enabled/disabled by users according to their preferences, with the reservation that disabling these cookies  will result in certain features of the website becoming unavailable. To find out what cookies in X-Cart belong to which type, see the section [[#X-Cart cookies | X-Cart cookies]] below.
 
 
 
Note that after the cookies information panel has been closed, the visitors will still be able to access the '<u>Change cookie settings</u>' panel at any time via the <u>Change cookie settings</u> link in the '<u>Special</u>' section:
 
: [[Image:Cookie_settings_link.png|border]]<br />
 
 
 
After a store visitor defines his or her cookie preferences using the '<u>Change cookie settings</u>' panel, the preferences are saved to his or her user profile, provided that the visitor has one and is logged in, or - if the visitor is not a registered user or is not logged in - are placed on the visitor's computer in the form of a cookie. Thus, on their subsequent visits to the store, the users will not have to readjust their cookie preferences for the store website again.
 
 
 
Note that the '<u>Change cookie settings</u>' panel allows users not only to define how they wish to treat future cookies, but also to control the cookies that might have already been set onto their computer as a result of using the store website: if, by the time a user decides to refuse certain type(s) of cookies, the said cookies are already stored on his or her computer, they will be removed as soon as the user clicks the '''Save and close''' button on the panel to save the respective 'disable' prefereces.
 
 
 
== X-Cart cookies ==
 
To find out whether a specific cookie used by your store is "strictly necessarry", "functional" or "other", you can refer to the <u>EU Cookie Law</u> module configuration file <xcart_dir>/modules/EU_Cookie_Law/config.php. This file defines your store's "strictly necessary" and "functional" cookies. The "strictly necessary" cookies are listed in the $config['EU_Cookie_Law']['strictly_necessary_cookies'] variable, whereas the list of "functional" cookies can be seen in the $config['EU_Cookie_Law']['functional_cookies'] variable. Typically, the said lists will include the following cookies:
 
 
 
:{| style="background-color: #ffffff;" class="wikitable"
 
! colspan="2" align="left"| '''Strictly necessary cookies'''
 
|-
 
| style="width:300px;" rowspan="2" | $XCART_SESSION_NAME
 
| style="width:400px;"| Remembers the user's shopping cart contents
 
|-
 
| style="width:400px;"| Remembers the user's personal account information (name, address, orders history, etc)
 
|-
 
| style="width:300px;"| eucl_cookie_access
 
| style="width:400px;"| EU Cookie Law module cookie; stores the user's cookie preferences
 
|}
 
 
 
:{| style="background-color: #ffffff;" class="wikitable"
 
! colspan="2" align="left"| '''Functional cookies'''
 
|-
 
| style="width:300px;"| $XCART_SESSION_NAME . 'C_remember'<br />$XCART_SESSION_NAME . 'B_remember'<br />$XCART_SESSION_NAME . 'A_remember'<br />$XCART_SESSION_NAME . 'P_remember'
 
| style="width:400px;"| Allow to restore the user's context (store codes that allow X-Cart to know where to redirerect the user after log-in, store some parameters for wishlist and special offers bonuses pages)
 
|-
 
| style="width:300px;"| adv_campaignid<br />adv_campaignid_time
 
| style="width:400px;"| Remember the user's membership in an affiliate program (if any)
 
|-
 
| style="width:300px;"| GreetingCookie
 
| style="width:400px;"| Remembers the user's name for the greeting message
 
|-
 
| style="width:300px;" | store_language
 
| style="width:400px;" | Remembers the user's language preferences
 
|-
 
| style="width:300px;"| partner_clickid<br />partner<br />partner_time
 
| style="width:400px;"| Allow collection of statistics on the user's purchases
 
|-
 
| style="width:300px;"| RefererCookie
 
| style="width:400px;"| Stores the URL of the site from which the user came to the store
 
|}
 
Note that both the lists are not something permanent: if you install any modules at your store, the cookies used by these modules can be added to the lists. 
 
 
 
"Other" cookies are all the cookies that are not listed in the $config['EU_Cookie_Law']['functional_cookies'] and $config['EU_Cookie_Law']['strictly_necessary_cookies'] variables. Here are just a few examples of such cookies:
 
* __utma, __utmb, __utmc (Google Analytics),
 
* WibiyaProfile (Wibiya module), etc.
 
 
 
== Enabling the EU Cookie Law module ==
 
 
 
The <u>EU Cookie Law</u> module is disabled in X-Cart by default. To be able to use this module in your store, you need to enable it.
 
 
 
To enable the module:
 
# In Admin area, go to the <u>Modules</u> section (<u>Settings menu->Modules</u>).
 
# Choose the 'EU Cookie Law' item by selecting the respective check box on the left.
 
# Click the '''Apply changes''' button. This activates the module.
 
 
 
The module does not require any additional configuration and will work out of the box.
 
 
 
== Changing the cookie informantion panel display time ==
 
The time for which the cookie information panel is displayed during a user's first visit to the store website is defined by the value of the countdown_sec variable in the file <xcart_dir>/skin/common_files/modules/EU_Cookie_Law/func.js. By default, this value is set to 60 seconds. If you wish to change the cookie information panel display time, edit the file <xcart_dir>/skin/common_files/modules/EU_Cookie_Law/func.js in a plain text editor replacing the "60" in the following line:
 
<pre>var countdown_sec = 60;</pre>
 
with the desired value in seconds.
 

Latest revision as of 13:15, 13 July 2012