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

Cookie won't set

Status
Not open for further replies.

gfender

IS-IT--Management
May 22, 2003
55
GB
Hi,
I'm having a bit of a problem with setcookie(). I'm making a login script that verifies the cookie has been set and the person is loggedin.
setcookie("logged","true",time()+600,"/members")
When i check this within the /members directory in my php script, it works for 90% of the users. However, there are some who cannot login at all and it's because the cookie is not setting. Is this a php error or browser error? I've already checked that they have privacy set to medium on IE and allow cookies on the domain.

Thanks you very much.
 
most probably browser error. their browsers must have turned cookies "off"....

Known is handfull, Unknown is worldfull
 
One other thing to check with the users for whom the cookie won't set. Is the date and time on their pc correct, I have seen cases where incorrect PC dates/times prevent the cookie being set or cause it to expire

Regards
Ian

Infinity exists! - I just haven't worked out a way to get there yet.

| |
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top