Passing recordset content to Session Variable

hi Guys,
Can any one tell me the correct way to pass recordset content to Session Variable? i have been try for many times,but still cannnot get it. Here is my script:

<?php
if (!session_id()) session_start();
$_SESSION[‘Var’] = $row_Var_RS[‘Var_ID’]?>

Thanks