Jump to content

cant read set Cookie


dfrojd

Recommended Posts

HI,

 

Im working with xampp on localhost.

 

I start all pages with session_start();

All session vars work fine.

 

now I:

setCookie("name",$_POST["name"],time()+2592000);

and the cookie is sent and accepted. I can see it in firefox extras...

 

BUT

 

print_r($_COOKIE);

 

delivers only one cookie that is: PHPSESSIONID,

and

isset($_COOKIE["name"])

replies false!

 

 

count($_COOKIE)

replies (one!)

 

even though I can see:

pma_lang

PHPSESSIONID

pma_collation_connection

pma_theme

name (sic)

pma_charset

 

six cookies set and valid for localhost.

Amyone an idea what I am doing wrong?

 

Dennis

Link to comment
https://forums.phpfreaks.com/topic/43882-cant-read-set-cookie/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.