WAMP localhost cookies Forbidden
Posted by: Miccim (---.adsl.wanadoo.nl)
Date: March 11, 2006 07:46PM

Running W2000 with WAMP. Now i'm trying to use cookies on my localhost, but receive the error message:
Forbidden
You don't have permission to access /cookie/< on this server.

It seems that I don't have the right to save/write cookies in folder /cookie?
What settings do I have to make to get this working (Apache settings, PHP settings)?

Greetings Miccim

Options: ReplyQuote
Re: WAMP localhost cookies Forbidden
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: March 12, 2006 04:25PM

first, check your php.ini file, and make sure this line equals 1:
session.use_cookies = 1

If not, change it to 1. Also, make sure this setting equals files:
session.save_handler = files

If not, change it to files. Also, change the default session directory set by WAMP from:
session.save_path = "../tmp"

To this:
session.save_path = "C:\WINDOWS\Temp"

Save php.ini file, restart apache and it should work now.

Options: ReplyQuote
Re: WAMP localhost cookies Forbidden
Posted by: nelchael (---.tse.gov.br)
Date: January 16, 2007 06:00PM

Hi all,

i solved this problem changing "Allow from" in the apache.conf in

\wamp\Apache2\conf\httpd.conf

<Directory "D:/aplic/wamp/www">
...
Order Deny,Allow
Deny from all
# Allow from 127.0.0.1 <-- old
Allow from 10.1.0.0/16
</Directory>

See old is the original value, I change to ip or range which you want.

It´s all.

Sorry my little english. I´ll pratice.

Claudio.

Options: ReplyQuote


Sorry, only registered users may post in this forum.