Page 1 of 1

cookie path

Posted: Sat Aug 15, 2009 12:13 pm
by m2babaey
Hi
When I send a cookie to a visitor's PC, with the file: public_html/resellers/savecookie.php
1.Then can I detect that cookie when I'm reading the file: public_html/payments/detectcookie.php?
2.how about public_html/phpfiles.php?
3.and how about subdirectories? (like public_html/resellers/subdirectory/a_php_file.php?
Thanks for your answers

Re: cookie path

Posted: Sat Aug 15, 2009 3:43 pm
by jackpf
Cookies set will be sent back by the browser to the domain that set it, in any directory equal to or lower than the path set.

Test it out. Best way to learn.