Cookies are stored in my web browser but not shown by PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
guarriman
Forum Commoner
Posts: 44
Joined: Thu Nov 03, 2005 4:11 am

Cookies are stored in my web browser but not shown by PHP

Post by guarriman »

Hi.

Working with PHP 4 and Firefox 2, I'd like to remove some cookies.

These cookies are stored within my web browser (Edit > Preferences > Privacy > Cookies):

Code: Select all

subdomain.example.com ... email_stored .... john%example.com
subdomain.example.com ... pass_stored .... fd9f9fdjfdfdf
But when trying to show them by using (executed in http:*//subdomain.example.com/cookies/test.php)

Code: Select all

print_r($_COOKIE)
they're not showned!

Any similar experience?

Thank you very much.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Try getting a Firefox extension that shows you the cookies available to the current domain. Maybe you are confusing one for another.
guarriman
Forum Commoner
Posts: 44
Joined: Thu Nov 03, 2005 4:11 am

Post by guarriman »

I installed "Add N Edit Cookies"
https://addons.mozilla.org/en-US/firefox/addon/573

The Firefox extension shows those cookies, but not PHP :(
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What "path" were the cookies set to?
Post Reply