{dede:php}session_start();{/dede:php}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">{dede:php}
function all($v)
{ exit($_SESSION[cfcs]);    $res='';
 if(empty($_SESSION[$v]))
   $res='class="all"';
  
  return $res;
 
}function on($v,$n)
{
  $res='';
  if($_SESSION[$v]==$n)
   $res='class="all"';
  return $res; 
}
{/dede:php}我在模板文件里这么写,但是发现一刷新后,session  的值就没了,这个session是在 index.php 里面写的