[eluser]Julia Yan[/eluser]
--------first URL
index.php/category/index/table_1
if (!isset($_COOKIE['table'])) setcookie("table", $this->uri->segment(3));
echo 'cookie = '.$_COOKIE['table'] //show cookie = 'table_1'
...list
--------second URL
index.php/category/index/10 //10 is pages
echo 'cookie = '.$_COOKIE['table'] //show cookie = 10
---------when $_COOKIE['table'] changed??? I need keep first $this->uri->segment(3) into cookeis