Determining which courses a user is taking

We make available course information for each student for the current semester and at least the previous semester.

This information is passed to CGI scripts in the environment variable USER_AFFILIATIONS along with other affiliations the user might have, as one long list with spaces in between the values.

A typical course string might look like:

CUcourse_ASCMV2003_001_1997_3

The tag CUcourse indicates that this is course information. The ASCM is the department code; the V2003 is the course number; the 001 is the section number; the 1997 is the year; and the 3 is the semester (1=spring, 2=summer, 3=fall).