Menu
[code=php]<?php
class cookie
{
var $path=”/”;
var $domain=”localhost”;
var $secure=0;
function sc($name, $value)
{
$expires = time()+3600;
setcookie($name, $value, $expires, $this->path, $this->domain, $this->secure);
}
}
?>
[code=php]<?php
include_once(“obj/class.cookie.php”);
$ck=new cookie();
$ck->sc(“servers”,”asdasdasdasd”);
print_r($_COOKIE);
?>
ok why this not working π‘