Title: ITP Cookie Saver &#8211; Convert javascript cookies to server cookies
Author: Nikel
Published: <strong>16 Qershor, 2019</strong>
Last modified: 5 Shkurt, 2023

---

Kërkoni te shtojca

Kjo shtojcë **s’është testuar me 3 hedhjet e rëndësishme të fundit në qarkullim 
të WordPress-it**. Mund të mos e mirëmbajnë më, ose mundet të mos mbulohet më dhe
mund të ketë probleme përputhshmërie, kur përdoret me versione më të freskët të 
WordPress-it.

![](https://ps.w.org/itp-cookie-saver/assets/icon-256x256.png?rev=2107043)

# ITP Cookie Saver – Convert javascript cookies to server cookies

 Nga [Nikel](https://profiles.wordpress.org/nikelschubert/)

[Shkarkim](https://downloads.wordpress.org/plugin/itp-cookie-saver.zip)

 * [Hollësi](https://sq.wordpress.org/plugins/itp-cookie-saver/#description)
 * [Shqyrtime](https://sq.wordpress.org/plugins/itp-cookie-saver/#reviews)
 *  [Instalim](https://sq.wordpress.org/plugins/itp-cookie-saver/#installation)
 * [Zhvillim](https://sq.wordpress.org/plugins/itp-cookie-saver/#developers)

 [Asistencë](https://wordpress.org/support/plugin/itp-cookie-saver/)

## Përshkrim

This plugin removes the seven days limitations of cookies in certain browsers. Many
browsers start to limit the cookie lifetime of cookies which are set by javascript
to a short period of time, e.g. Safaris ITP 2.1.

### Why is the limitation of the lifetime a Problem?

Depending on your website their might be a lot of Problems. The two main challenges
might be:
 1. Tracking 2. Cookie Consent Banner

**Tracking**
 Most Tracking Tools, like Google Analytics for example are setting
their cookies by javascript. If the cookie is deleted after seven days, the tools
are not able to recognize the user as a returning user anymore, so after seven days
of absence every user is a new user.

**Cookie Consent Banner**
 It is a problem, if the cookie consent banner implementation
sets the cookie with javascript. This is how most of the banner implementation do
it. If the cookie lifetime is limited by the browser to seven days, the user will
see the banner every seven days, even if he made already a choice. This can be annoying
and conversion relevant.

### How does this Plugin work exactly?

As part of the HTTP protocol all cookies are always send to the backend with every
request.
 This plugin uses this fact, by checking every request if one of the defined
cookies is present. If a defined cookie is present, it sets it with the same value
again.

**Now the cookie is set by the server and the javascript cookie lifetime limitation
is bypassed.**

A challenge with this approach might be, that the cookie is set at the beginning
of a page load. During page load there might be javascripts, which overwrite the
cookie. In that case the javascript cookie lifetime limitation is kicking in again.

This can be avoided by checking the “before unload”- feature. With this feature 
enabled, everytime the user leaves a page, an additional request is send in the 
background and the cookies are set again.
 So you can be sure, the server was the
last to touch the cookie.

## Foto ekrani

 * [[
 * General Settings

## Instalim

Just install this plugin and go to Settings > ITP Cookie Saver and activate it.

You can add the cookie names you want to save. The Google Analytics Cookie is already
prefilled.

## Shqyrtime

Për këtë shtojcë s’ka shqyrtime.

## Kontribues & Zhvillues

“ITP Cookie Saver – Convert javascript cookies to server cookies” është software
me burim të hapur. Në këtë shtojcë kanë dhënë ndihmesë personat vijues.

Kontribues

 *   [ Nikel ](https://profiles.wordpress.org/nikelschubert/)

[Përkthejeni “ITP Cookie Saver – Convert javascript cookies to server cookies” në gjuhën tuaj.](https://translate.wordpress.org/projects/wp-plugins/itp-cookie-saver)

### Ju intereson zhvillimi?

[Shfletoni kodin](https://plugins.trac.wordpress.org/browser/itp-cookie-saver/),
shkarkoni [depon SVN](https://plugins.svn.wordpress.org/itp-cookie-saver/), ose 
pajtohuni përmes [RSS-je](https://plugins.trac.wordpress.org/log/itp-cookie-saver/?limit=100&mode=stop_on_copy&format=rss)
te [regjistri i zhvillimeve](https://plugins.trac.wordpress.org/log/itp-cookie-saver/).

## Regjistër ndryshimesh

#### 1.2.1

 * Fix: missing isset: notice was spamming the logs

#### 1.2.0

 * Fix: critical vulnerability.

#### 1.1.1

 * Fixing major bug from v1.1: setcookies had problems with older php versions.

#### 1.1

 * added samesite attribute when saving cookie. It is always “lax”.
 * you can config the domain where to write the saved cookie now.
 * bug fixes

#### 1.0.2

 * Minor Fix

#### 1.0.1

 * Minor Fix: in very few case there were some PHP Notices thrown.
 * Minor Fix: Duplicate Fieldname in Settings.

#### 1.0

 * First Version of this Plugin. More to come!

## Të tjera

 *  Version **1.2.1**
 *  Përditësuar së fundi më **3 vjet më parë**
 *  Instalime aktive **20+**
 *  Version WordPress-i ** 4.0 ose më i madh **
 *  E provuar deri me **6.1.10**
 *  Version PHP-je ** 5.3 ose më i madh **
 *  Gjuhë
 * [English (US)](https://wordpress.org/plugins/itp-cookie-saver/)
 * Etiketa
 * [cookie](https://sq.wordpress.org/plugins/tags/cookie/)[itp](https://sq.wordpress.org/plugins/tags/itp/)
   [tracking](https://sq.wordpress.org/plugins/tags/tracking/)
 *  [Pamje e Thelluar](https://sq.wordpress.org/plugins/itp-cookie-saver/advanced/)

## Vlerësime

S’është parashtruar ende ndonjë përshtypje.

[Your review](https://wordpress.org/support/plugin/itp-cookie-saver/reviews/#new-post)

[Shihni krejt shqyrtimet](https://wordpress.org/support/plugin/itp-cookie-saver/reviews/)

## Kontribues

 *   [ Nikel ](https://profiles.wordpress.org/nikelschubert/)

## Asistencë

Keni diçka për të thënë? Ju duhet ndihmë?

 [Shihni forum asistence](https://wordpress.org/support/plugin/itp-cookie-saver/)