Location: PHPKode > scripts > PHP-PAPA > php-papa/papa/ControllerCookie.php
<?php
class ControllerCookie{
	public function __get($name){
              
              if(isset($_COOKIE['__PAPA__'.$name]))
		return stripslashes($_COOKIE['__PAPA__'.$name]);
              return '';
	}
	public function __set($name,$value/*,time*/){
		
		setcookie('__PAPA__'.$name,$value,time()+31536000,'/');
		
	}
	public function remove($key){
		$_COOKIE['__PAPA__'.$key]='';
		setcookie('__PAPA__'.$key);
	}
}
?>
Return current item: PHP-PAPA