# Cookies 🍪

Technical documentation and Consent Mode

  A detailed description of the developer methods and advanced cookie-configuration options within the JavaScript API can be found in our repository: 
  Foxentry Javascript-API v2.

For legal reasons, analytical cookies may only be stored on a website with the visitor's active consent. Foxentry is fully prepared for these requirements. Below you'll find an overview of the data we store and how to connect Foxentry to your own cookie banner.

Cookies used by the Foxentry service

Our frontend library sets only a single cookie directly in the browser, used to store the consent state. All other cookies are handled by our backend, for load-balancing and statistics purposes.

    
        
            Name
            Type
            Required
            Description
            Validity
        
    
    
        
            SERVERID
            functional
            yes
            used for API load-balancing purposes
            until the end of the session
        
        
            foxentryCookieMode
            functional
            yes
            records the cookie consent state
            365 days
        
        
            PHPSESSID
            analytical
            no
            identifies the user for statistics and history purposes
            180 days
        
        
            clientToken
            analytical
            no
            more precise identification of the client within statistics
            180 days
        
    

Use of Local Storage

Besides classic cookies, Foxentry also uses the browser's local storage. This is used exclusively for caching data, in order to speed up the application and save data transfer. No personal data is stored here.

    Caching SVG icons: so that icons don't need to be downloaded repeatedly, they're stored with the prefix FoxentryCache___SVG__ (e.g. FoxentryCache___SVG__close-fill).

    Caching API responses: responses from the API are stored under the prefix FoxentryCache___, followed by an encrypted hash of the given request.

Connecting with your cookie banner

As soon as the user grants or denies consent in your banner, you need to inform Foxentry of the scope of allowed cookies using the Foxentry.setCookieMode method. We recommend calling this method immediately after the user interacts with the banner.

// Allow all cookies (after consent is granted)
Foxentry.setCookieMode("full");

// Allow only necessary cookies (when consent is denied)
Foxentry.setCookieMode("minimal");

Validity of consent on subdomains

The consent setting depends on the domain on which it was granted. If a user grants consent for the main domain yourshop.com, the setting is automatically applied to all of its subdomains as well. However, if consent is only granted on a specific subdomain (e.g. cart.yourshop.com), it will apply only to that subdomain and its own sub-parts, not to the main domain.

Project limitations in minimal mode

If users decline analytical cookies and Foxentry runs in minimal mode, we won't be able to analytically match these users in the administration. This can affect the accuracy of your project's statistics. However, the actual functionality of the validators and autocomplete features remains fully intact.
