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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP setcookie() IE 6.0

Status
Not open for further replies.

clacy

Programmer
May 15, 2002
2
US
I use setcookie() successfully on Netscape 4.72 and Netscape 6.1, but it fails on IE 6.0.

The call is very straightforward:

setcookie( name, value, expire);

It works in the Netscape browsers (I can see the cookie in the ~/.netscape/cookies file), but never gets set in IE 6.0

Can anyone tell me how to make this work? Thanks very much.
 
hello

have u enables ur cookies ?
check in internet options > security > custom settings




 
Use this sample for the expiration date: $expDate = time()+259200; Of course set the time to your own preference. Also, if you use apache verify the cookies module is loading.
 
Yes, I set IE 6.0 to accept cookies. Actually, the path is

Tools->Internet Options->Privacy

where one finds a slider to set privacy. I have 'medium', which allows cookies from all websites.

I am using

time() + 366*86400

for the time parameter, which should make the cookie good for a leap year. [How does one make it permanent, by the way?]

There must be a clue in the fact that it will work for Netscape but not IE, but I haven't found a solution yet.

clacy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top