I am having a problem setting cookies. Here is the code that I use:
$cookie_site_name = "";
$cookie_site_name_path = "";
setcookie("logged_in", 1, time()+604800, "$cookie_site_name_path", "$cookie_site_name");
setcookie("username", $login_username, time()+604800, "$cookie_site_name_path", "$cookie_site_name");
for the $cookie_site_name I have tried leaving it blank, deleting it, using localhost, 127.0.0.1, 192.168.1.3 (my computers ip address).
for the $cookie_site_name_path I have tried leaving it blank, deleting it, and using /, /system, /system/, system/. (system is the folder that I have the site in).
What I will be doing is using it for a administration system for a tournament and I am going to be creating an network so the system can be accessed from multiple computers. The only way I have been able to do this so far is by using the computers IP address. The problem I am having is it will not set any cookies.
Does anyone have an idea on why it is doing this or a way to fix it?