代碼: 選擇全部
//CCGetSession @0-F4650E55
function CCGetSession($parameter_name, $default_value = "")
{
session_start();
$result = isset($_SESSION[$parameter_name]) ? $_SESSION[$parameter_name] : $default_value;
session_write_close();
return $result;
}
//End CCGetSession
//CCSetSession @0-025730A6
function CCSetSession($param_name, $param_value)
{
session_start();
$_SESSION[$param_name] = $param_value;
session_write_close();
}
//End CCSetSession
請再下
session_start();
才可寫入新的Session