gesf
New member
hi.
I´m making a 'change skin' script for my site and i´m using php cookies.
This is the code i´m using to set the cookie:
// This cookie will expire after 30 days.
(1)
In the manual it´s written that:
If the cookie exists and i make a setcookie, the cookie will be updated with the new value...but somehow it doesn´t happen to me. It only works if i delete the cookie manually.
Any idea?
see if the skin script is working with you:
default version - Green version - Blue version
(2) (I.E case)
I´m using a free domain, not my host url.
By default, will be written on the cookie the host address.
...So that wont work with me! The address on the cookie is not the address on the browser.
e.g: set a cookie if u didn´t - now view with my domain
can i make the cookie to be accepted by the browser independently of the address on the address bar?
Regards,
gesf
I´m making a 'change skin' script for my site and i´m using php cookies.
This is the code i´m using to set the cookie:
// This cookie will expire after 30 days.
Code:
<?
if (isset($skin))
{
setcookie ("skin","$skin",time()+60*60*24*30,"/",getenv("HTTP_HOST"));
}
$place = $_SERVER['HTTP_REFERER'];
header ("Location: ".$place."");
?>
(1)
In the manual it´s written that:
If the cookie exists and i make a setcookie, the cookie will be updated with the new value...but somehow it doesn´t happen to me. It only works if i delete the cookie manually.
Any idea?
see if the skin script is working with you:
default version - Green version - Blue version
(2) (I.E case)
I´m using a free domain, not my host url.
By default, will be written on the cookie the host address.
...So that wont work with me! The address on the cookie is not the address on the browser.
e.g: set a cookie if u didn´t - now view with my domain
can i make the cookie to be accepted by the browser independently of the address on the address bar?
Regards,
gesf