Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

setting common cookie to the whole domain

Javascript coding ..

Moderators: macek, egami, gesf

setting common cookie to the whole domain

Postby snsanju » Sun Aug 07, 2005 9:09 pm

i want set cookies for the site say using the javascript and the code i am using is

document.cookie = cookiestring;

so it is working fine but when i use same code to set Domain name as "" as
then its not working.
also i tried to by giving PATH=/ its not creating the cookie

these cookies i want for redirecting depending on the sub domain like or

how to set common domain ie for domain as well as subdomains to access from any domains.
if name of the cookie is 'city' i must able to access that cookie from, or
New php-forum User
New php-forum User
Posts: 42
Joined: Thu Aug 04, 2005 1:35 am
Location: Bangalore, India

Return to JavaScript

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.