Home › Forum › Problemi Vari con WP › Cancellare cookie server ovh
-
AutorePost
-
-
31 Maggio 2018 alle 15:50 #31720digitaldavidPartecipante
Ciao a tutti,
per qualche sito uso l’hosting condiviso di ovh. Questo crea due cookie tecnici sul pc utente per suddividere il carico dei loro server.
Volevo provare a cancellarlo, inserendo un codice nella sezione head delle pagine (di tutte le pagine), secondo voi è possibile?
Ho inserito questo codice nel file wp-config:
setcookie(“mailplan”, null);
define( ‘mailplan’, false);
setcookie(“mailplanBAK”, null);
define( ‘mailplanBAK’, false);
Ora se vado sul sito, se guardo una sola pagina (ossia quella da cui entro indistintamente da quale sia) i due cookie non vengono più caricati. ma se da li vado verso qualsiasi altra pagina, vengono creati.
Qualcuno ha qualche idea di dove posso inserire questo codice per toglierlo ovunque?
Io ho provato in page, header, footer, function, ma nessun risultato.
1000 grazie
-
31 Maggio 2018 alle 18:33 #122189SteveAglAmministratore del forum
A) non si tratta di un problema WP
b) I cookie avranno domini diversi dal tuo non credo sia possibile cancellarli ed in ogni caso il server li ricreerebbe al prossimo caricamento pagina
-
6 Giugno 2018 alle 9:00 #122196digitaldavidPartecipante
A) non si tratta di un problema WP
b) I cookie avranno domini diversi dal tuo non credo sia possibile cancellarli ed in ogni caso il server li ricreerebbe al prossimo caricamento pagina
Ciao e grazie della tua risposta.
Il problema non è di wp, ma volevo capire se c’è un modo di ovviare il problema con wp.
Il cookie viene fatto da ovh e caricato sul pc dell’utente (è un cookie che ha una vita di un’ora), serve solo per suddividere il carico di lavoro sui server di ovh.
Lo fa su tutte le pagine, ma io con il codice che ho scritto prima (inserito nel file wp-config) riesco a non farlo caricare durante la prima pagina caricata del sito (qualunque essa sia). Ma dalla seconda in poi, questi cookie vengono creati comunque.
Allora mi chiedevo? Magari c’è un’altro luogo all’interno di wp dove, inserendo il codice questo lo elimina dal pc utente. Io ho provato nel footer e negli header, ma non funziona.
Qualcuno ha qualche idea?
1000 grazie!
-
6 Giugno 2018 alle 10:24 #122197SteveAglAmministratore del forum
Contiuo a non capire perchè toglierli e caricare i server in maniera diseguale che fastidio ti danno? Non sono cookie che richiedono un copnsenso non tracciando nulla. sicuroc he i cookie non cambino nome ma mano che cambi pagina? o da una volta all’altra? se i cookie esiste lo elimini all’inizio ma se poi è aggiunto poi alal fine del caricamento di WP a quel punto lo hai settato e lo vedisempre. Chiedere assitenza ad OVH no?
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.