= %s and end_datetime is null order by date_time desc",GetSQLValueString($min_session_datetime,"date"));
$get_sessions = mysql_query($sql_get_sessions) or die(mysql_error());
printf("Resume session for subject ");
printf("
");
}
else { //session_id was posted
require_once('../include/subject_includes.php');
$get_session_info = mysql_select(sprintf("select * from session where session_id=%d",$_POST['session_id']));
$cookie_value = $get_session_info['php_session_id'];
//set the cookie to the value corresponding to the session
setcookie($QPI_SESSION_NAME,$cookie_value,time()+60*60*24*365*30,'/',"",0);
//the cookie has been properly set, but the session variables still haven't been retrieved.
//after setting the cookie, another script must be called in order to start the session again
//and retrieve all of the session variables.
header("Location: ../form_processing/goto_current_form.php");
}
?>