Cookies not accepted

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Cookies not accepted

Postby rob2006 » 30. October 2006 10:58

When using XAMMP, php scritps which use cookies are not working.

I am being told by many "pre-written" php applications that my browser is not accepting cookies. However they are (Firefox and IE) and when I look at the same code being run over the internet they work fine.

An example is phpgedview, but also other codes are not working with cookies locally.
Posts: 3
Joined: 30. October 2006 09:01

Postby Bantamanick » 30. October 2006 18:23

Hi Rob,

Not that it's much consolation, but I'm having the same problem here. I've posted on here a while back and not got much help apart from the obvious check your browser privacy settings... which of course is the first thing you do. Trouble is, my script works live, but not local, which is annoying as I can't test it!

I upgraded to XAMPP from an old version of PHP Triad (Apache 1.3.23). I've checked my php.ini and httpd.conf but no clues.

Will let you know if I get it solved.

Posts: 4
Joined: 10. October 2006 10:15

Postby rob2006 » 02. November 2006 17:54

See the other cookie problem thread for a solution I have found.
Posts: 3
Joined: 30. October 2006 09:01

Postby WorldDrknss » 06. November 2006 11:53

Domain - This can be used to specify the domain name, and must contain at least two periods to be valid. If this argument is not specified, the default value is the host name of the server that created the cookie. All cookies are valid only for the host and domain that created them.

for cookies use something similar to:
Code: Select all
setcookie("Name", "Value", "Expiry", "Path", "Domain", "Security");

Code: Select all
setcookie("MemberName", $mem_user, time()+86400, "/", "", "0");

Good Luck - XAMPP Tutorials & MORE!!!!
User avatar
Posts: 292
Joined: 17. September 2005 13:40

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 56 guests