improved cookie session; added course history;