There is a big problem , when I go into my website with the url the cookies go into the and when I go with the cookies place is meaning that its diffrent from the first one , how can i set and get the cookies so the cookies be set in only one place ?

easier meaning :
url = , cookies website name =
url = , cookies website name = !=

You need to set the domain when you're setting the cookie to include subdomains (including www) of that domain.

setcookie('CookieName', 'Cookie Value', time+3600, '', '');

Note the preceeding period '.' infront of the domain, that is important.