Comment activer session.cookie_domain ?
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
question

Comment activer session.cookie_domain ?

Par
PetitJean
Créé le 2018-08-17 09:59:43 (edited on 2024-09-04 11:32:29) dans Hébergements Web

Bonjour à tous,

J'ai un hebergement mutualisé pro.
Je voudrais partager la même session sur mes sous domaines.
phpinfo() renvoit : session.cookie_domain : no value | no value

J'ai ajouté sur les pages de mon site :
ini_set('session.cookie_domain', '.monsite.com');
session_set_cookie_params(0, '/', '.monsite.com');
session_start();

Malheureusement le partage de session n'a pas l'air de fonctionner.

Savez-vous où est le problème ?

Merci !