Page 1 of 1

setsession && mod_rewrite && /etc/hosts

Posted: Mon Jul 19, 2010 7:27 am
by dejvos
Hi,

I want to ask if the proper function of the setcookie() could be influenced by mod_rewrite or translation IP address via /etc/hosts/ on the local machine.

I have web server where the address is translated via mod_rewrite. I use an alias of an IP address on my computer.

And now - the strange thing. The upper code doesn't work and the code bellow does.

Code: Select all

set_cookie('name','value',$proper_path,$proper_domain,false);

Code: Select all

set_cookie('name','value',null,null,false);
Do you have any suggestions?

Thanks!