[php] cookie 跨域共享

<?php
// m.hin*.com
class Controller_Cookie extends Hnb_Base_Controller
{ public function init()
{
parent::init();
} public function indexAction()
{ setcookie('cookie_4000', json_encode($_REQUEST), time()+86400 , '/' , '.hin*.com'); } public function clsAction()
{
Hnb_Session::getInstance()->clearSession();
} } // www.hin*.com
    class Controller_Cookie extends Hnb_Base_Controller
{ public function init()
{
parent::init();
} public function indexAction()
{
var_dump($_COOKIE);
print_r($_COOKIE['cookie_4000']); } }


上一篇:Java 密码扩展无限制权限策略文件[转]


下一篇:解决安卓手机input获取焦点时会将底部固定定位按钮顶起的问题