top of page

Cookies

The Cookies plugin is specifically designed to implement web cookies in your application projects to store data in small text files on user devices. Features include creating, reading, fetching, checking and deleting cookies, for games built in Construct 3.


The Cookies plugin covers all the features in JavaScript with support for all commonly used browsers.


The Cookies plugin supports all platforms including web, desktop, mobile, instant games, playable ads, etc., through the application browser or webview.

PlayFab API v2.png

Introduction

Step 1.png

The Construct Master Collection supports the full and easy integration of HTML 5 SDKs for web applications in web, mobile and desktop browsers, for both Construct 3 and Construct 2.


Please click here to learn more about Web.

Features


The Cookies plugin is specifically designed to implement web cookies in your application projects to store data in small text files on user devices. Features include creating, reading, fetching, checking and deleting cookies, for games built in Construct 3.


The Cookies plugin covers all the features in JavaScript with support for all commonly used browsers.


The Cookies plugin supports all platforms including web, desktop, mobile, instant games, playable ads, etc., through the application browser or webview.


Here are some of the web features of the web plugin:

  • JavaScript Cookies

    • Create cookies

    • Update or overwrite cookies

    • Read cookies

    • Check if cookie exists

    • Get cookie value from key

    • Delete cookie

  • Additional features

    • Set expiry

    • Set path

    • Delete in path

  • Through the Cookies plugin, you can use the web cookies feature while web worker mode is enabled.

  • Well maintained and fully tested for production release.

For more information about web application features, please click here to learn the introductory lessons to Web.


Platform Integration


Here are some of the platforms that are natively supported:

  • All platforms supported by Construct 3.

  • Web

  • Mobile Web

  • Desktop

  • Android

  • iOS


Build Support


Here are some of the supported build options:

  • Web

  • Desktop

    • NW.js

    • Windows (WebView2)

    • macOS (WKWebView)

  • Mobile

  • Construct 3 Build Service

  • Construct Arcade


Editor Features


Here are some of the features in the Construct editor:

  • Construct 3

Introduction
Features

How to use?

It is easy to use the Cookies plugin, you will only need to follow the steps below.

1. The first step is to add the Cookies object into the project.


Instructions
Documentation

Documentation

Here are the following official documentation and guides into using JavaScript Cookies.

ACEs

Actions, Conditions & Expressions

Actions

The following action groups:

  • General

  • Features

General

  • Set cookie - Create a cookie with a key, value, expiry timestamp and path.

    • Key - The key of the cookie.

    • Value - The value of the cookie.

    • Expiry (Days) - The time duration in days before expiration. Leave an empty or any string to unspecify.

    • Path - The path of the cookie. Leave blank to unspecify.


  • Delete cookie - Delete a cookie.

    • Key - The key of the cookie to delete.

    • Path - The path of the cookie. Leave blank to unspecify.


  • Get cookie - Get a cookie value from a key.

    • Key - The key of the cookie to fetch.



Features

  • Check Cookie - Check if a cookie exists from a key.

    • Key - The key of the cookie to check.

Conditions

The following condition groups:

  • General

  • Features