setsession && mod_rewrite && /etc/hosts

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
dejvos
Forum Contributor
Posts: 122
Joined: Tue Mar 10, 2009 8:40 am

setsession && mod_rewrite && /etc/hosts

Post 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!
Post Reply