Source

myswap / 1 / code / App / Lib / Action / TestAction.class.php

Full commit
<?php
Class TestAction extends Action{
	public function set_cookie()
	{
		$value=$_GET["v"];
		unset($_COOKIE["name"]);
		Cookie::delete("name");
		Cookie::set("name",$value,365,"","");

        // $value   =  base64_encode(serialize($value));
        // setcookie(C('COOKIE_PREFIX').$name, $value,$expire,$path,$domain);
		echo 'Cookie::set("name","'.$value.'")';
	}
	public function get_cookie()
	{
		print_r($_COOKIE);
		echo 'Cookie::get("name")=>';
		echo Cookie::get("name");
	}
}
?>