Jump to content


Photo

Quick qns about cookie


  • Please log in to reply
2 replies to this topic

#1 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 30 July 2006 - 10:13 AM

This is the format of setting cookie
setcookie(name, value, expire, path, domain);

If I didn't set the path and domain, will the cookie be allow to use in all my site ?

Example:
My site is http://sky.cwhnetworks.com/
And I only set the cookie name, value and the time it last. Will the cookie able to use in other page like http://sky.cwhnetwor...m/php/index.php etcs..

Thanks in advance.

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.


#2 king arthur

king arthur
  • Members
  • PipPipPip
  • Advanced Member
  • 335 posts
  • LocationUK HQ

Posted 30 July 2006 - 10:22 AM

Yes.
Sir Isaac Newton said "If I have seen farther, it is by standing on the shoulders of giants". But it is not recorded as to whether he said it before or after he was hit on the head by a falling apple.

#3 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 30 July 2006 - 10:30 AM

Ok thanks.

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users