Ciao ragazzi.
ho un cookies che credo in una cartella /shop/
ORA VORREI USARE IL COOKIES ANCHE NELLA ROOT DEL SITO WEB.
esempio:
www.miosito.it/shop <-- QUI USO IL COOKIES SENZA PROBLEMI.
www.miosito.it <--
Ciao ragazzi.
ho un cookies che credo in una cartella /shop/
ORA VORREI USARE IL COOKIES ANCHE NELLA ROOT DEL SITO WEB.
esempio:
www.miosito.it/shop <-- QUI USO IL COOKIES SENZA PROBLEMI.
www.miosito.it <--
come setti il cookie?
Per far valere il cookie in tutte le cartelle dovresti fare una cosa del genere...
setcookie("nome", "valore", time()+n, "/");
ciao