Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set cookies across the whole site

Status
Not open for further replies.

jgd12345

Technical User
Joined
Apr 22, 2003
Messages
124
Location
GB
Sup, I was wondering how you make the cookies available across the whole site. I tried changing the last part of the setCookie to:

setcookie("xmbuser", $username, $currtime, "", ".punkcentre.com");
setcookie("xmbpw", $password, $currtime, "", ".punkcentre.com");

but it did not work.

If you goto and login with the username bob and password bob you will notice that it works fine.

If you goto then the cookies are displayed (the contents of this file is simply <? echo &quot;user: $xmbuser<b>pw: $xmbpw&quot;; ?>. I uploaded the same file to but the cookies are not displayed, therefore they have not been set across the whole site.

If you know how todo this I'd be very greatful as it's very important for my site. Thanx
 
Cheers worked a charm, I could have your kids.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top