<?php // m.hinabian.com class Controller_Cookie extends Hnb_Base_Controller { public function init() { parent::init(); } public function indexAction() { setcookie(‘cookie_4000‘, json_encode($_REQUEST), time()+86400 , ‘/‘ , ‘.hinabian.com‘); } public function clsAction() { Hnb_Session::getInstance()->clearSession(); } } // www.hinabian.com
class Controller_Cookie extends Hnb_Base_Controller { public function init() { parent::init(); } public function indexAction() { var_dump($_COOKIE); print_r($_COOKIE[‘cookie_4000‘]); } }
时间: 2024-10-13 02:32:53